|
@@ -6,7 +6,9 @@ git_dir_ovpn="openvpn"
|
|
JENKINS_MAIL="jenkins.dev@sdsys.ru"
|
|
JENKINS_MAIL="jenkins.dev@sdsys.ru"
|
|
cd /
|
|
cd /
|
|
GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_pki}
|
|
GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_pki}
|
|
|
|
+cd /${git_dir_pki} && git checkout $2
|
|
GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_ovpn}
|
|
GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_ovpn}
|
|
|
|
+cd /${git_dir_ovpn} && git checkout $2
|
|
|
|
|
|
stonevpn -f $1 -n "$1" -z
|
|
stonevpn -f $1 -n "$1" -z
|
|
|
|
|
|
@@ -18,7 +20,7 @@ git add -A
|
|
git config --global user.email "${JENKINS_MAIL}"
|
|
git config --global user.email "${JENKINS_MAIL}"
|
|
git config --global user.name "Jenkins"
|
|
git config --global user.name "Jenkins"
|
|
git commit -F /tmp/commit.txt
|
|
git commit -F /tmp/commit.txt
|
|
-GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin master
|
|
|
|
|
|
+GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin $2
|
|
|
|
|
|
#cd ${git_dir_ovpn}
|
|
#cd ${git_dir_ovpn}
|
|
|
|
|