Ver código fonte

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 anos atrás
pai
commit
e9410e0049
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      Jenkinsfile

+ 3 - 2
Jenkinsfile

@@ -40,7 +40,7 @@ pipeline {
         }
       }
     }
-/*    stage("Pull PKI repo") {
+    stage("Pull PKI repo") {
       steps {
         withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
           sh '''GIT_SSH_COMMAND='ssh -i ${GIT_SSH_KEY} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
@@ -62,7 +62,7 @@ pipeline {
              '''
       }
     }
-    stage("Build") {
+/*    stage("Build") {
       steps {
         echo "Building ${DOCKER_IMAGE}:${SERIAL}."
         sh """docker build --no-cache -t ${DOCKER_IMAGE}:${SERIAL} .
@@ -89,6 +89,7 @@ pipeline {
           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"
         }
       }
     }