Explorar el Código

更新 'Jenkinsfile'

chenghongxi hace 4 años
padre
commit
99c9b84fde
Se han modificado 1 ficheros con 9 adiciones y 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 
+              """
+         }
+    }
 }