Explorar el Código

更新 'Jenkinsfile'

chenghongxi hace 4 años
padre
commit
1924ae9579
Se han modificado 1 ficheros con 1 adiciones y 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"
-					if ("${projectList[i]}" || ["mchsrv","dafaf"]) {
+					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  {
 						echo "2222222222222"