Tomishinets Vladimir 3 vuotta sitten
vanhempi
commit
d61245d4d7
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      Jenkinsfile-prod

+ 2 - 2
Jenkinsfile-prod

@@ -85,12 +85,12 @@ pipeline {
     stage("Updating service"){
       steps{
         script {
-            echo "Updating ${item}"
+            echo "Updating ${SERVICE_NAME}"
             try{
               sh "DOCKER_HOST=${DHOST} docker service update ${SERVICE_NAME} --image ${PROD_REGISTRY}/${DOCKER_IMAGE}:${NEWTAG}"
             }
             catch(err){
-              echo "Recovering service $item"
+              echo "Recovering service ${SERVICE_NAME}"
               sh "DOCKER_HOST=${DHOST} docker service rollback ${SERVICE_NAME}"
               throw err
             }