Browse Source

Обновить 'Jenkinsfile_genkey'

Vladimir Tomishinets 7 years ago
parent
commit
83549dedd0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Jenkinsfile_genkey

+ 2 - 1
Jenkinsfile_genkey

@@ -61,7 +61,8 @@ pipeline {
           echo "Running ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest."
           withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
             sh '''set +x
-                  docker run -i --rm -e TZ=Europe/Moscow -e "mode=keygen" -e "SSHKEY=$(cat ${GIT_SSH_KEY})" \
+                  docker pull ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest \
+                  && docker run -i --rm -e TZ=Europe/Moscow -e "mode=keygen" -e "SSHKEY=$(cat ${GIT_SSH_KEY})" \
                   ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest /tmp/keygen.sh ${key_name}
                '''
           }