mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-08 12:23:05 +02:00
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:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user