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()] + } + } }