Jelajahi Sumber

Jenkinsfile mistakes

Wadim Surkov 6 tahun lalu
induk
melakukan
3b6e43f98e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -85,7 +85,7 @@ pipeline {
       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 server=127.0.0.1 --privileged -d --rm  ${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
              """