Forráskód Böngészése

更新 'Jenkinsfile'

chenghongxi 4 éve
szülő
commit
d45ecab111
1 módosított fájl, 0 hozzáadás és 18 törlés
  1. 0 18
      Jenkinsfile

+ 0 - 18
Jenkinsfile

@@ -11,23 +11,5 @@ ansiColor('xterm') {
 			echo "\u001B[32m############开始拉取代码############\u001B[0m"
 				checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${git_auth}", url: "${git_url}"]]])
 		}
-		stage('build images') {
-			for (int i = 0; i < projectList.length ; i++) {
-				echo "\u001B[32m############正在build images,项目名为:${projectList[i]}############\u001B[0m"
-				if ("${projectList[i]}" == "mchsrv" || "${projectList[i]}" == "sharebms2" || "${projectList[i]}" == "sharebms2-nginx" || "${projectList[i]}" == "sharesrv2") {
-					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" || "${projectList[i]}" == "login-app-lj" || "${projectList[i]}" == "login-app-ln" || "${projectList[i]}" == "login-mp" ||"${projectList[i]}" == "login-mp" ||"${projectList[i]}" == "login-mp-gf" || "${projectList[i]}" == "login-mp-intl" || "${projectList[i]}" == "login-websocket" || "${projectList[i]}" == "login-websocket-gf" || "${projectList[i]}" == "登陆服务器-提审" || "${projectList[i]}" == "登陆服务器-测试专用"){
-					sh "docker build -t ${xy_image}/${projectList[i]}:${release} -f ${jenkins_home}/logonsvr/${projectList[i]}/Dockerfile ${jenkins_home}/logonsvr/${projectList[i]}"
-				} else {
-					sh "docker build -t ${xy_image}/${projectList[i]}:${release} -f ${jenkins_home}/${projectList[i]}/Dockerfile ${jenkins_home}/${projectList[i]}"
-				}
-			} 
-		}
-		stage('push aliyuncs registry') {
-			for (int i = 0; i < projectList.length ; i++) {
-				echo "\u001B[32m############正在推送镜像,项目名为:${projectList[i]}############\u001B[0m" 
-				sh "docker push ${xy_image}/${projectList[i]}:${BUILD_NUMBER}"
-			}
-		}
 	}
 }