Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 years ago
parent
commit
2e0a81c981
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Jenkinsfile

+ 5 - 5
Jenkinsfile

@@ -1,4 +1,4 @@
-def SERIAL = 180811041
+def SERIAL
 def ENAMES = [ 'prod', 'dev' ]
 def CLUSTERS = ['prod': 'iru-swarm1-open.infoclinica.lan', 'dev': 'dev-iru-swarm.infoclinica.lan']
 def REGISTRIES = ['prod': 'registry.infoclinica.ru:5000', 'dev': 'dev-registry.infoclinica.ru:5000']
@@ -34,14 +34,14 @@ pipeline {
     )
   }
   stages {
-/*    stage ("Discover SERIAL") {
+    stage ("Discover SERIAL") {
       steps {
         script {
           SERIAL = sh script: "echo -n `date +%y%m%d``printf %03d $BUILD_NUMBER`", returnStdout: true
         }
       }
     }
-*/    stage("Pull PKI repo") {
+    stage("Pull PKI repo") {
       steps {
         withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
           sh '''GIT_SSH_COMMAND='ssh -i ${GIT_SSH_KEY} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
@@ -63,7 +63,7 @@ pipeline {
              '''
       }
     }
-/*    stage("Build") {
+    stage("Build") {
       steps {
         echo "Building ${DOCKER_IMAGE}:${SERIAL}."
         sh """docker build --no-cache -t ${DOCKER_IMAGE}:${SERIAL} .
@@ -83,7 +83,7 @@ pipeline {
         }
       }
     }
-*/    stage("Run in Prod-like") {
+    stage("Run in Prod-like") {
       steps {
         script {
           echo "Check Prod-like cluster status"