|
@@ -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
|
|
|
+ """
|
|
|
|
|
|
}
|
|
|
}
|