Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 years ago
parent
commit
646ce371d2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Jenkinsfile

+ 1 - 0
Jenkinsfile

@@ -93,6 +93,7 @@ pipeline {
           sh """export DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1
                 cd \${SWARM_GIT_NAME}/\${DOCKER_IMAGE}
                 ./ovpn-rsa-open-staging.sh
+                node=\$(docker service ps \${SERVICE_NAME} --format '{{.Node}}' --filter desired-state=Running)
              """
         }
       }