chenghongxi преди 4 години
родител
ревизия
64491abfce
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Jenkinsfile

+ 1 - 1
Jenkinsfile

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