mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Added success/fail to jenkins
This commit is contained in:
parent
4d54fb409b
commit
46c076ca2a
1 changed files with 9 additions and 1 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -16,7 +16,7 @@ pipeline {
|
|||
sh './mvnw package'
|
||||
}
|
||||
}
|
||||
stage('deploy') {
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
|
@ -25,5 +25,13 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
slackSend "Build Succeeded - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
}
|
||||
failure {
|
||||
slackSend "Build Succeeded - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue