未验证 提交 0e554745 编写于 作者: Q quicksilver 提交者: GitHub

Jenkins sending email on post build (#5651)

* Jenkins sending email on post build
Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>

* Jenkins sending email on post build
Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>

* Jenkins sending email on post build
Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>

* Jenkins sending email on post build
Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>

* Jenkins sending email on post build
Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>
上级 68f703f9
......@@ -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'
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册