Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 years ago
parent
commit
a4b8e8f3fb
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Jenkinsfile

+ 2 - 4
Jenkinsfile

@@ -86,15 +86,13 @@ pipeline {
       steps {
         script {
           echo "Check Prod-like cluster status"
-          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'
-            echo "${DHOST}"
+          sh "echo -n \${SERIAL} > ../\${SWARM_GIT_NAME}/tags/\${DOCKER_IMAGE}.version"
           sh """cd \${SWARM_GIT_NAME}/\${DOCKER_IMAGE}
                 DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1 ./ovpn-rsa-open-staging.sh
              """
           def NODE = sh script: "DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1 docker service ps \${SERVICE_NAME} --format '{{.Node}}' --filter desired-state=Running" , returnStdout: true
           echo "${NODE}"
+          
              
         }
       }