Explorar o código

更新 'Jenkinsfile'

chenghongxi %!s(int64=4) %!d(string=hai) anos
pai
achega
b94f9ebcb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

@@ -16,7 +16,7 @@ ansiColor('xterm') {
 		stage('build images') {
 			for (int i = 0; i < projectList.length ; i++) {
 				echo "\u001B[32m############正在build images,项目名为:${projectList[i]}############\u001B[0m"
-				for (int j = 0 ; j < sharev2list.size() ; j++) {
+				for (int j = 0 ; j < sharev2list.length ; j++) {
 					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]}"
 					} else if ("${projectList[i]}" == "${logonsvrlist[j]}") {