From ba2c3b97fe052c03a636aeebe0ddfe6651a219ee Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Tue, 31 Aug 2021 16:55:24 +0200 Subject: [PATCH] Jenkinsfile: add mail pipeline --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 300f081..1977213 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,4 +8,12 @@ pipeline { } } } + post { + failure { + emailext body: 'Please check #$BUILD_NUMBER $PROJECT_NAME - $BUILD_STATUS! See $BUILD_URL', subject: 'Build #$BUILD_NUMBER $PROJECT_NAME - $BUILD_STATUS!', recipientProviders: [developers(), requestor()] + } + fixed { + emailext body: '$BUILD_STATUS, see $BUILD_URL', subject: 'Build #$BUILD_NUMBER $PROJECT_NAME - $BUILD_STATUS!', recipientProviders: [developers(), requestor()] + } + } } -- 2.39.5