Browse Source

Обновить 'Jenkinsfile'

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

+ 3 - 1
Jenkinsfile

@@ -93,7 +93,9 @@ pipeline {
              """
           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).trim()
           echo "${NODE}"
-          sh "container_id_client=\$(docker run -e mode=client -e server=${NODE} --privileged -d --rm  ${DOCKER_IMAGE}:${SERIAL})"
+          sh """container_id_client=\$(docker run -e mode=client -e server=${NODE} --privileged -d --rm  ${DOCKER_IMAGE}:${SERIAL})
+                docker exec -t \${container_id_client} ping -c 3 -q 10.20.0.1
+             """
              
         }
       }