Browse Source

missprint

Tomishinets Vladimir 3 years ago
parent
commit
d61245d4d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jenkinsfile-prod

+ 2 - 2
Jenkinsfile-prod

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