From e05ce6a5f9819c51eb7d2dc29e0d53093d501afc Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Tue, 31 Aug 2021 16:58:01 +0200 Subject: [PATCH] Add Mail rule --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 300f081..997ba54 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,4 +8,9 @@ pipeline { } } } + post { + always { + emailext body: 'Please check why ${env.BUILD_TAG} failed! [${env.BUILD_URL}]', subject: 'Build FAILED! ${env.BUILD_TAG}', recipientProviders: [[$class: 'DevelopersRecipientProvider']] + } + } }