From daacead0e4add4b7c49627dbc5dcb90294bcd898 Mon Sep 17 00:00:00 2001 From: Lara Date: Mon, 9 Mar 2020 23:35:09 -0400 Subject: [PATCH] Added email notifications --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 59e43a8a1..815eafb48 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,4 +29,16 @@ pipeline { } } } + post { + failure { + mail to: 'larat248@gmail.com', + subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", + body: "Something is wrong with ${env.BUILD_URL}" + } + success{ + mail to: 'larat248@gmail.com', + subject: "Success Pipeline: ${currentBuild.fullDisplayName}", + body: "Everything is good ${env.BUILD_URL}" + } + } }