Vadim Surkov преди 7 години
родител
ревизия
2244827a7a
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -40,7 +40,8 @@ pipeline {
       }
     }
     stage("Update") {
-      when { expression { service_update != "" } }
+      when { expression { service_update == "" } }
+//      when { expression { service_update != "" } }
       steps {
         script {
           for (String item : service_update.split()) {
@@ -61,7 +62,7 @@ pipeline {
       steps{
         echo "Setting latest tag"
         sh '''docker tag ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest
-              docker pull ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest'''
+              docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest'''
         echo "Updating tag info in iru/stack-deploy 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' \