Explorar el Código

Обновить 'Jenkinsfile'

Vladimir Tomishinets hace 6 años
padre
commit
834d88d013
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      Jenkinsfile

+ 3 - 1
Jenkinsfile

@@ -85,7 +85,9 @@ pipeline {
       steps {
         script {
           echo "Check Prod-like cluster status"
-          println ENAMES[0]
+          sh "DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1 docker node ls"
+          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'
         }
       }
     }