From 9ec93888c68a1931a9c2c8e2a16b6eee09bcb17c Mon Sep 17 00:00:00 2001 From: Muneeb Nezameddin <39063206+MNezameddin@users.noreply.github.com> Date: Mon, 16 Mar 2020 04:23:45 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d808ea17c..b5ca29227 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,15 +9,11 @@ pipeline { } post { - success { - 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}" - } + success { + emailext body: 'A Test EMail', + recipientProviders: [[$class: 'DevelopersRecipientProvider'], + [$class: 'RequesterRecipientProvider']], + subject: 'Test' } } +}