Browse Source

Отключил staging

Tomishinets Vladimir 2 years ago
parent
commit
654e19efe5
1 changed files with 11 additions and 11 deletions
  1. 11 11
      Jenkinsfile

+ 11 - 11
Jenkinsfile

@@ -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 {