Explorar o código

更新 'Jenkinsfile'

chenghongxi %!s(int64=4) %!d(string=hai) anos
pai
achega
99c9b84fde
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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 
+              """
+         }
+    }
 }