From cd571f7cf7e4d891fa17185fad5c0f92258cb430 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 25 Sep 2022 20:39:30 +0200 Subject: [PATCH] mail notification --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2521a41..78b3a6c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,4 +25,11 @@ pipeline { } } } + post { + changed { + mail to: "jenkins@wamblee.org", + subject: "jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}", + body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}" + } + } } -- 2.31.1