mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
Update pipeline to send an email when the build succeeds.
This commit is contained in:
parent
fbac1c1fd8
commit
c4d9c11fca
1 changed files with 8 additions and 1 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -26,7 +26,14 @@ pipeline {
|
|||
success {
|
||||
mail to: 'firassawan@icloud.com',
|
||||
subject: "Succeeded Pipeline: ${currentBuild.fullDisplayName}",
|
||||
body: "Congrats ${env.BUILD_URL}"
|
||||
body: "Email Notification: The build has successfully completed
|
||||
${env.BUILD_URL}"
|
||||
}
|
||||
failure {
|
||||
mail to: 'firassawan@icloud.com',
|
||||
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
|
||||
body: "Email Notification: The build has not completed successfully
|
||||
${env.BUILD_URL}"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue