Wadim Surkov преди 6 години
родител
ревизия
1d3fb87bf3
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -80,8 +80,9 @@ pipeline {
           for (String item : service_update.split()) {
             try{
                echo "Updating ${item}"
-               sh "echo Docker host is $DOCKER_HOST, cert $DOCKER_CERT_PATH"
-               sh "docker service update ${service_name} --image ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
+               sh """echo Docker host is $DOCKER_HOST, cert $DOCKER_CERT_PATH
+                     docker node ls
+                     docker service update ${service_name} --image ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"""
             }
             catch(err){
                echo "Recovering service $item"