milvus/ci/jenkinsfile/notify.groovy
quicksilver ed8e79a4f8 add helm stable repo
Former-commit-id: edfdbd7d2d671a40bf25eb0ea077fe23c497a611
2019-07-12 14:40:04 +08:00

16 lines
482 B
Groovy

def notify() {
if (!currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
// Send an email only if the build status has changed from green/unstable to red
emailext subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
recipientProviders: [
[$class: 'DevelopersRecipientProvider'],
[$class: 'RequesterRecipientProvider']
],
replyTo: '$DEFAULT_REPLYTO',
to: '$DEFAULT_RECIPIENTS'
}
}
return this