فهرست منبع

更新 'Jenkinsfile'

chenghongxi 4 سال پیش
والد
کامیت
99c9b84fde
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      Jenkinsfile

+ 9 - 0
Jenkinsfile

@@ -20,4 +20,13 @@ node {
               sh "docker push ${xy_image}${projectList[i]}:${BUILD_NUMBER}"
         }
     }
+    stage('push aliyuncs registry') {
+         for (int i = 0; i < projectList.length ; i++) {
+              cd ${jenkins_home}
+              sh """
+		      chmod +x ${jenkins_home}jenkins.py
+		      python3 jenkins.py 
+              """
+         }
+    }
 }