Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 years ago
parent
commit
5ae7ee5b3e
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Jenkinsfile

+ 3 - 5
Jenkinsfile

@@ -90,11 +90,9 @@ pipeline {
           sh "DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1 docker node inspect self -f '{{.Status.Addr}}'"
             def DHOST = 'tcp://'+sh(script: "DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1 docker node inspect self -f '{{.Status.Addr}}'", returnStdout: true).trim()+':2376'
             echo "${DHOST}"
-          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)
-             """
+          sh "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) */
+             
         }
       }
     }