mirror of https://github.com/milvus-io/milvus.git
Jenkins sending email on post build (#5651)
* Jenkins sending email on post build Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com> * Jenkins sending email on post build Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com> * Jenkins sending email on post build Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com> * Jenkins sending email on post build Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com> * Jenkins sending email on post build Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>pull/5656/head
parent
68f703f983
commit
0e55474559
|
@ -54,6 +54,18 @@ pipeline {
|
|||
}
|
||||
}
|
||||
post {
|
||||
unsuccessful {
|
||||
container('jnlp') {
|
||||
script {
|
||||
def authorEmail = sh returnStdout: true, script: 'git --no-pager show -s --format=\'%ae\' HEAD~1'
|
||||
emailext subject: '$DEFAULT_SUBJECT',
|
||||
body: '$DEFAULT_CONTENT',
|
||||
recipientProviders: [developers(), culprits()],
|
||||
replyTo: '$DEFAULT_REPLYTO',
|
||||
to: "${authorEmail}"
|
||||
}
|
||||
}
|
||||
}
|
||||
always {
|
||||
container('main') {
|
||||
script {
|
||||
|
|
|
@ -69,10 +69,7 @@ pipeline {
|
|||
script {
|
||||
emailext subject: '$DEFAULT_SUBJECT',
|
||||
body: '$DEFAULT_CONTENT',
|
||||
recipientProviders: [
|
||||
[$class: 'DevelopersRecipientProvider'],
|
||||
[$class: 'RequesterRecipientProvider']
|
||||
],
|
||||
recipientProviders: [requestor()],
|
||||
replyTo: '$DEFAULT_REPLYTO',
|
||||
to: 'qa@zilliz.com'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue