Parcourir la source

Code optimization errors

Vadim Surkov il y a 6 ans
Parent
commit
df62bc3659
1 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 4 5
      Jenkinsfile

+ 4 - 5
Jenkinsfile

@@ -48,7 +48,7 @@ pipeline {
         sh "docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
       }
     }
-/*    stage("Publish") {
+    stage("Publish") {
       steps {
         echo "Publishing ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
         sh "docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
@@ -94,12 +94,11 @@ pipeline {
         }
       }
     }
-*/    stage("Tagging"){
+    stage("Tagging"){
       steps{
         echo "Setting latest tag"
         sh """ docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest
-               echo docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest """
-/*               docker push ${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' \
@@ -114,7 +113,7 @@ pipeline {
                   git push origin master
                 ls'''
         }
-*/      }
+      }
     }
   }
   post {