未验证 提交 7113f232 编写于 作者: J Jenny Li 提交者: GitHub

[skip ci] Update email (#13087)

Signed-off-by: NJenny Li <jing.li@zilliz.com>
上级 a73be6d1
......@@ -192,20 +192,25 @@ pipeline {
}
}
}
unsuccessful {
container('jnlp') {
script {
def authorEmail = sh returnStdout: true, script: 'git --no-pager show -s --format=\'%ae\' HEAD'
emailext subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
recipientProviders: [developers(), culprits()],
replyTo: '$DEFAULT_REPLYTO',
to: "${authorEmail},devops@zilliz.com"
}
}
}
}
}
post{
unsuccessful {
container('jnlp') {
dir ('tests/scripts') {
script {
def authorEmail = sh(returnStdout: true, script: './get_author_email.sh ')
emailext subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
recipientProviders: [developers(), culprits()],
replyTo: '$DEFAULT_REPLYTO',
to: "${authorEmail},devops@zilliz.com"
}
}
}
}
}
}
}
}
\ No newline at end of file
#!/bin/bash
set -e
function get_author_email(){
email=$(git --no-pager show -s --format=\'%ae\' HEAD )
if [[ "${email}" == 'nobody@nowhere' ]]; then
email=$(git --no-pager show -s --format=\'%ae\' HEAD^ )
fi
echo ${email} | sed $'s/\'//g'
}
get_author_email
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册