From c4d9c11fcabf58f6104409e8cf1d7aa57a0de9d0 Mon Sep 17 00:00:00 2001 From: Firassawan <35850933+Firassawan@users.noreply.github.com> Date: Mon, 9 Mar 2020 18:05:34 -0400 Subject: [PATCH] Update pipeline to send an email when the build succeeds. --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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}" } }