|
@@ -81,17 +81,17 @@ pipeline {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- stage("Staging test") {
|
|
|
- steps {
|
|
|
- script {
|
|
|
- CONTAINER_ID_SERVER = sh (script: "docker run -d --rm -e mode=server --privileged ${DOCKER_IMAGE}:${SERIAL}", returnStdout: true).trim()
|
|
|
- CONTAINER_ID_CLIENT = sh (script: "docker run -d --rm -e mode=client -e server=127.0.0.1 --privileged ${DOCKER_IMAGE}:${SERIAL}" , returnStdout: true).trim()
|
|
|
- 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
|
|
|
- """
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // stage("Staging test") {
|
|
|
+ // steps {
|
|
|
+ // script {
|
|
|
+ // CONTAINER_ID_SERVER = sh (script: "docker run -d --rm -e mode=server --privileged ${DOCKER_IMAGE}:${SERIAL}", returnStdout: true).trim()
|
|
|
+ // CONTAINER_ID_CLIENT = sh (script: "docker run -d --rm -e mode=client -e server=127.0.0.1 --privileged ${DOCKER_IMAGE}:${SERIAL}" , returnStdout: true).trim()
|
|
|
+ // 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
|
|
|
+ // """
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
stage ("Tagging") {
|
|
|
steps {
|
|
|
script {
|