mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
ed8e79a4f8
Former-commit-id: edfdbd7d2d671a40bf25eb0ea077fe23c497a611
16 lines
482 B
Groovy
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
|
|
|