Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 7 years ago
parent
commit
e90f9a3f05
1 changed files with 8 additions and 2 deletions
  1. 8 2
      Jenkinsfile

+ 8 - 2
Jenkinsfile

@@ -11,7 +11,7 @@ pipeline {
     SWARM_GIT_NAME='stack-deploy'
     PKI_GIT_URL='ssh://git@git.sdsys.ru:8022/iru/openvpn-pki.git'
     PKI_GIT_NAME='openvpn-pki'
-    GOST_GIT_DIR='openvpn-gost'
+    GOST_GIT_DIR='openvpn'
     JENKINS_MAIL='jenkins@sdsys.ru'
     CLUSTER_NAME='dev-iru-swarm.infoclinica.lan'
   }
@@ -47,7 +47,13 @@ pipeline {
                 ls -al ${WORKSPACE}/openvpn/keys/
              '''
       }
-    } 
+    }
+    stage("Build") {
+      steps {
+        echo "Building ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}."
+        sh "docker build --no-cache -t ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER} ."
+      }
+    }
   }
   post {
     always {