Sfoglia il codice sorgente

Обновить 'keygen.sh'

Vladimir Tomishinets 6 anni fa
parent
commit
5e40f2fdea
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      keygen.sh

+ 3 - 1
keygen.sh

@@ -6,7 +6,9 @@ git_dir_ovpn="openvpn"
 JENKINS_MAIL="jenkins.dev@sdsys.ru"
 cd /
 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}
+cd /${git_dir_ovpn} && git checkout $2
 
 stonevpn -f $1 -n "$1" -z
 
@@ -18,7 +20,7 @@ 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
+GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin $2
 
 #cd ${git_dir_ovpn}