From 13968ed141186ee474418d5f62ba042e116d2712 Mon Sep 17 00:00:00 2001 From: Muneeb Nezameddin <39063206+MNezameddin@users.noreply.github.com> Date: Mon, 16 Mar 2020 03:41:32 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e108ba49c..85411c106 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,20 +18,20 @@ pipeline { } stage('Deploy') { steps { - echo 'Deploy' + echo 'Deployed Successfully' } } } post { success { - mail to: 'mnezam.31@gmail.com', - subject: "Successful Pipeline", - body: "Your tests worked accordingly!" - } - failure { - mail to: 'mnezam.31@gmail.com', - subject: "Failed Pipeline}", - body: "Something is wrong" + mail to: 'mnezam.31@gmail.com', + subject: "Successfull Build: ${currentBuild.fullDisplayName}", + body: "The following was successfully built ${env.BUILD_URL}" + } + failure { + mail to: 'mnezam.31@gmail.com', + subject: "Failed Build: ${currentBuild.fullDisplayName}", + body: "Something went wrong with the following ${env.BUILD_URL}" + } } } -}