#!/bin/bash #git_url="ssh://git@git.sdsys.ru:8022/iru/openvpn-pki.git" #git_dir="openvpn-pki" JENKINS_MAIL="jenkins@sdsys.ru" GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url} cd ${git_dir}/gost ./build-key $1 echo "Generate new key and cert for $1" > /tmp/commit.txt git add -A git config --global user.email "${JENKINS_MAIL}" git config --global user.name "Jenkins" git commit -F /tmp/commit.txt GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin master