Browse Source

Обновить 'Jenkinsfile'

Vladimir Tomishinets 6 years ago
parent
commit
37d9daf4f7
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Jenkinsfile

+ 4 - 3
Jenkinsfile

@@ -17,7 +17,7 @@ pipeline {
 
 
   }
   }
   stages {
   stages {
-    stage("PULL REPOs") {
+     wrap([$class: 'AnsiColorBuildWrapper']) { stage("\u001B[31m PULL REPOs \u001B[0m") {
       steps {
       steps {
         echo "\u2600 Pull repo ${SWARM_GIT_NAME}"
         echo "\u2600 Pull repo ${SWARM_GIT_NAME}"
         withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
         withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
@@ -31,6 +31,7 @@ pipeline {
         }
         }
       }
       }
     }
     }
+    }
     stage("Generate zone-files") {
     stage("Generate zone-files") {
       steps {
       steps {
         echo "\u2600 Generate ptr-zones"
         echo "\u2600 Generate ptr-zones"
@@ -68,7 +69,7 @@ pipeline {
            '''
            '''
       }
       }
     }
     }
-    stage("Publishing") {
+/*    stage("Publishing") {
       steps {
       steps {
         echo "\u2600 Publishing ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}."
         echo "\u2600 Publishing ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}."
         sh "docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}"
         sh "docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}"
@@ -130,7 +131,7 @@ pipeline {
         }
         }
       }
       }
     }
     }
-  }
+*/  }
   post {
   post {
     always {
     always {
       echo "\u2600 CleaningUp work directory"
       echo "\u2600 CleaningUp work directory"