|
@@ -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
|
|
|
+ """
|
|
|
+ }
|
|
|
}
|