Преглед на файлове

Code optimization errors

Vadim Surkov преди 6 години
родител
ревизия
01be5e17ae
променени са 1 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 5 4
      Jenkinsfile

+ 5 - 4
Jenkinsfile

@@ -58,16 +58,17 @@ pipeline {
         }
         echo "Docker ${DOCKER_HOST}, Registry ${DOCKER_REGISTRY}"
 /*        echo "Building ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER}."
-        sh "docker build --build-arg repo=${repo} --no-cache -t ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ."
-*/      }
+        sh "docker build --build-arg repo=${repo} --no-cache -t ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${repo}-${BUILD_NUMBER} ." */
+      }
     }
     stage("Publish") {
       steps {
         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}."
+        }
+        error ("Emergency exit")
       }
     }
     stage("Update") {