Explorar el Código

更新 'Jenkinsfile'

chenghongxi hace 5 años
padre
commit
fb3ddf0d7a
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      Jenkinsfile

+ 9 - 2
Jenkinsfile

@@ -11,7 +11,14 @@ node {
         sh "cd ${jenkins_home}${project_name}"
         sh "docker build -t ${xy_image}${project_name}:${release} -f ${jenkins_home}${project_name}/Dockerfile ${jenkins_home}${project_name}"
     }
-    stage('push aliyuncs') {
+    stage('push aliyuncs registry') {
         sh "docker push ${xy_image}${project_name}:${BUILD_NUMBER}"
-   }
+    }
+    stage('Release && check'){
+		sh """
+		cd ${jenkins_home}
+		chmod + x ${jenkins_home}jenkins.py
+		python3 jenkins.py
+		"""
+	}
 }