mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 14:35:27 +08:00
[skip ci] Update email (#13087)
Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
parent
a73be6d190
commit
7113f23214
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
tests/scripts/get_author_email.sh
Executable file
11
tests/scripts/get_author_email.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Loading…
x
Reference in New Issue
Block a user