diff --git a/Jenkinsfile b/Jenkinsfile index 61b86e074..0b6277444 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" } }