Browse Source

更新 'Jenkinsfile'

chenghongxi 4 years ago
parent
commit
8f8d1f5f58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -14,8 +14,8 @@ 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'){
-						echo "11111111111111"
+					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 "222222222222"
 					}