From 91dc2a9979fdb308deed5d740d3d30909e523031 Mon Sep 17 00:00:00 2001 From: Samira Ouaaz Date: Thu, 18 Nov 2021 00:08:51 -0500 Subject: [PATCH] add post action with email --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2d3e88f..fe593b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,9 @@ pipeline { post { always { junit 'test-reports/results.xml' //4 +           mail to:"buildAdmin@mycompany.com", +          subject:"STATUS FOR PROJECT: ${currentBuild.fullDisplayName}", +          body: "RESULT: ${currentBuild.result}"   } } }