From 5f8b68e9faba1b69c4e1a3152c3a1d2eae701060 Mon Sep 17 00:00:00 2001 From: Muneeb Nezameddin <39063206+MNezameddin@users.noreply.github.com> Date: Mon, 16 Mar 2020 05:20:00 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f81acf3ab..b8878ebe3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,11 +23,18 @@ pipeline { } } post { - always { + success { mail ( to: "mnezam.31@gmail.com", - subject: "Success", - body: "Build successful" + subject: "Successful Build", + body: "Build successful with the following ${env.BUILD_URL}" + ) + } + failure { + mail ( + to: "mnezam.31@gmail.com", + subject: "Build Failure", + body: "Build Failure has occured with the following ${env.BUILD_URL}" ) } }