Commit d520ce5a by Administrator

Update Jenkinsfile

parent 64c302c3
Pipeline #77 passed with stage
in 9 seconds
...@@ -2,19 +2,16 @@ pipeline { ...@@ -2,19 +2,16 @@ pipeline {
agent any agent any
stages { stages {
stage('build') { stage('build') {
when { branch 'master' } when { branch 'develop' }
steps { steps {
sh '/apache-maven-3.6.3/bin/mvn clean package -Dmaven.test.skip=true -U' sh 'check_java.sh'
} }
post { post {
success { success {
sh "/usr/local/bin/workwechatctl -p ${env.JOB_NAME} -n 陈伟阳 -c 项目编译成功进行下一阶段" sh "/usr/local/bin/workwechatctl -p ${env.JOB_NAME} -n 张金晓 -c 项目未检查出bug等问题,开始编译发布。"
} }
failure { failure {
step([$class: 'Mailer', sh "/usr/local/bin/workwechatctl -p ${env.JOB_NAME} -n 张金晓 -c 项目已检查出bug等问题,请登陆gitlab查看bug信息。"
notifyEveryUnstableBuild: true,
recipients: "chenweiyang@zhiweidata.com",
sendToIndividuals: true])
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment