提交 2e59ea0d 编写于 作者: Q quicksilver 提交者: jinhai

send email on master node


Former-commit-id: 33fe31f8254b5ab2cc7a99e4b903a16730030f71
上级 fe085bc5
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册