Browse Source

更新 'Jenkinsfile'

chenghongxi 4 years ago
parent
commit
7c0468d357
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

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