|
@@ -14,7 +14,7 @@ node {
|
|
sh "docker build -t ${xy_image}${projectList[i]}:${release} -f ${jenkins_home}${projectList[i]}/Dockerfile ${jenkins_home}${projectList[i]}"
|
|
sh "docker build -t ${xy_image}${projectList[i]}:${release} -f ${jenkins_home}${projectList[i]}/Dockerfile ${jenkins_home}${projectList[i]}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- stage('stage('push aliyuncs registry') {
|
|
|
|
|
|
+ stage('push aliyuncs registry') {
|
|
for (int i = 0; i < projectList.length ; i++) {
|
|
for (int i = 0; i < projectList.length ; i++) {
|
|
sh "echo 正在推送镜像,项目名为:${projectList[i]} "
|
|
sh "echo 正在推送镜像,项目名为:${projectList[i]} "
|
|
sh "docker push ${xy_image}${projectList[i]}:${BUILD_NUMBER}"')
|
|
sh "docker push ${xy_image}${projectList[i]}:${BUILD_NUMBER}"')
|