Parcourir la source

Code optimization errors

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

+ 5 - 4
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,11 +94,12 @@ 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
-               docker push ${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 """
         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' \
@@ -113,7 +114,7 @@ pipeline {
                   git push origin master
                 ls'''
         }
-      }
+*/      }
     }
   }
   post {