|
@@ -19,9 +19,16 @@ ansiColor('xterm') {
|
|
|
}
|
|
|
stage('push aliyuncs registry') {
|
|
|
for (int i = 0; i < projectList.length ; i++) {
|
|
|
- echo "正在推送镜像,项目名为:${projectList[i]} "
|
|
|
+ echo "\u001B[32m############正在推送镜像,项目名为:${projectList[i]}############\u001B[0m"
|
|
|
sh "docker push ${xy_image}${projectList[i]}:${BUILD_NUMBER}"
|
|
|
}
|
|
|
}
|
|
|
+ stage('push aliyuncs registry') {
|
|
|
+ for (int i = 0; i < projectList.length ; i++) {
|
|
|
+ sh "cd ${jenkins_home}"
|
|
|
+ sh "chmod +x ${jenkins_home}jenkins.py"
|
|
|
+ sh "python3 jenkins.py ${projectList[i]}"
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|