|
@@ -95,7 +95,7 @@ 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}"
|
|
|
CONTAINER_ID_CLIENT = sh script: "docker run -e mode=client -e server=${NODE} --privileged -d --rm ${DOCKER_IMAGE}:${SERIAL}" , returnStdout: true
|
|
|
- sh """docker exec -t \${CONTAINER_ID_CLIENT} ping -c 3 -q 10.10.20.1
|
|
|
+ sh """docker exec -t ${CONTAINER_ID_CLIENT} ping -c 3 -q 10.10.20.1
|
|
|
if [ \$? != 0 ]; then exit 1; else echo 'OVPN_RSA is working!!!'; fi
|
|
|
"""
|
|
|
|
|
@@ -130,7 +130,7 @@ pipeline {
|
|
|
}
|
|
|
post {
|
|
|
always {
|
|
|
- sh "docker stop ${CONTAINER_ID_CLIENT}"
|
|
|
+ sh "docker stop ${CONTAINER_ID_CLIENT}"
|
|
|
sh "DOCKER_HOST=tcp://${CLUSTERS.get((ENAMES[1]))}:2376 DOCKER_TLS_VERIFY=1 docker stack rm ${DOCKER_IMAGE}"
|
|
|
echo "CleaningUp work directory"
|
|
|
deleteDir()
|