Browse Source

Code optimization errors

Vadim Surkov 6 years ago
parent
commit
22b0b43926
1 changed files with 5 additions and 4 deletions
  1. 5 4
      Jenkinsfile

+ 5 - 4
Jenkinsfile

@@ -63,13 +63,14 @@ pipeline {
     }
     stage("Publish") {
       steps {
-/*        echo "Publishing ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}"
+        echo "Publishing ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}"
+        error ("Emergency exit")
         sh "docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}"
-*/    script {
+    script {
            sh "echo Building ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}."
       }
     }
-/*    stage("Update") {
+    stage("Update") {
       when { expression { service_update != "" } }
       steps {
         script {
@@ -138,7 +139,7 @@ pipeline {
         }
       }
     }
-*/  }
+  }
   post {
     always {
       echo "CleaningUp work diretory"