milvus/ci/jenkinsfile/notify.groovy
JinHai-CN aece3eb1e1 Add CI back
Former-commit-id: 51725a23f47d8432c1ee8f4d15bd5a6994c6f38e
2019-10-15 19:24:55 +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