Browse Source

Code optimization errors

Vadim Surkov 6 years ago
parent
commit
af13c834d3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -97,8 +97,8 @@ pipeline {
     stage("Tagging"){
       steps{
         echo "Setting latest tag"
-        sh '''docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest
-              docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest'''
+        sh """ docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest
+               docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest """
         echo "Updating tag info in ${SWARM_GIT_NAME} repository"
         withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
           sh '''GIT_SSH_COMMAND='ssh -i ${GIT_SSH_KEY} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \