Jenkins: Send mail to standard recipients on failed builds.

findEmailRecipients() from ces-build-lib works only for Git, not for
hg Repos.
This commit is contained in:
Johannes Schnatterer
2018-06-27 11:40:29 +02:00
parent 10e951c4b1
commit e41083628d

4
Jenkinsfile vendored
View File

@@ -11,7 +11,7 @@ node() { // No specific label
disableConcurrentBuilds()
])
String defaultEmailRecipients = env.EMAIL_RECIPIENTS
String defaultEmailRecipients = env.EMAIL_SCM_RECIPIENTS
catchError {
@@ -40,5 +40,5 @@ node() { // No specific label
// Archive Unit and integration test results, if any
junit allowEmptyResults: true, testResults: '**/target/failsafe-reports/TEST-*.xml,**/target/surefire-reports/TEST-*.xml,**/target/jest-reports/TEST-*.xml'
mailIfStatusChanged(findEmailRecipients(defaultEmailRecipients))
mailIfStatusChanged(defaultEmailRecipients)
}