mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-03 01:12:25 +08:00
send email on master node
Former-commit-id: 2fab82c23cfd1a93e1df61686f54f11352a2c463
This commit is contained in:
parent
7cabf0f1ea
commit
e3ec2ac26a
@ -234,12 +234,20 @@ spec:
|
||||
post {
|
||||
always {
|
||||
script {
|
||||
node {
|
||||
def notify = load "${env.WORKSPACE}/ci/jenkinsfile/notify.groovy"
|
||||
notify.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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
success {
|
||||
script {
|
||||
updateGitlabCommitStatus name: 'CI/CD', state: 'success'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user