瀏覽代碼

更新 'Jenkinsfile'

chenghongxi 4 年之前
父節點
當前提交
d4c28695dd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -14,9 +14,9 @@ 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','sharebms2']){
+					if ("${projectList[i]}" || ['mchsrv','sharebms2']){
 						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]}" == ['login-app-jl','login-app-lj']){
+					} else if("${projectList[i]}" || ['login-app-jl','login-app-lj']){
 						echo "222222222222"
 					}
 			}