ソースを参照

更新 'Jenkinsfile'

chenghongxi 4 年 前
コミット
674fe9e994
1 ファイル変更1 行追加2 行削除
  1. 1 2
      Jenkinsfile

+ 1 - 2
Jenkinsfile

@@ -15,9 +15,8 @@ ansiColor('xterm') {
 		}
 		stage('build images') {
 			for (int i = 0; i < projectList.length ; i++) {
-				for (int j = 0 ; j < sharev2list.size() ; j++) {
 					echo "\u001B[32m############正在build images,项目名为:${projectList[i]}############\u001B[0m"
-					if ("${projectList[i]}" == "${sharev2list[j]}") {
+					if ("${projectList[i]}" == "${sharev2list}") {
 						sh "docker build -t ${xy_image}/${projectList[i]}:${release} -f ${jenkins_home}/share-v2/${projectList[i]}/Dockerfile ${jenkins_home}/share-v2/${projectList[i]}"
 						echo "11111111111111111111111111"
 					} else if ("${projectList[i]}" == "${logonsvrlist[j]}") {