Update pipeline to send an email when the build succeeds.

This commit is contained in:
Firassawan 2020-03-09 18:05:34 -04:00 committed by GitHub
parent fbac1c1fd8
commit c4d9c11fca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
Jenkinsfile vendored
View file

@ -26,7 +26,14 @@ pipeline {
success { success {
mail to: 'firassawan@icloud.com', mail to: 'firassawan@icloud.com',
subject: "Succeeded Pipeline: ${currentBuild.fullDisplayName}", 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}"
} }
} }