Ver código fonte

更新 'Jenkinsfile'

chenghongxi 4 anos atrás
pai
commit
05c0d64027
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -7,10 +7,10 @@ def projectList = project_name.split(",")
 ansiColor('xterm') {
 	node {
     	stage('pull code') {
-				echo "\u001B[32m开始拉取代码\u001B[0m"
+                echo "\u001B[32m开始拉取代码\u001B[0m"
         	    checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${git_auth}", url: "${git_url}"]]])
 		}
-   		stage('build images') {
+        stage('build images') {
         	for (int i = 0; i < projectList.length ; i++) {
                 echo "\u001B[32m正在build images,项目名为:${projectList[i]}\u001B[0m"
           	    sh "docker build -t ${xy_image}${projectList[i]}:${release} -f ${jenkins_home}${projectList[i]}/Dockerfile ${jenkins_home}${projectList[i]}"