INFRA-1743 Activate C4 email notifications Open source and Ent

This commit is contained in:
ConnelMcGovern 2022-03-23 16:54:21 +00:00
parent 648f4cf397
commit 682aa43f97

View File

@ -382,6 +382,22 @@ pipeline {
}
}
}
failure {
script {
def statusSymbol = '\u274c'
if (isReleaseTag || isReleaseBranch || isReleaseCandidate) {
emailext subject: "$statusSymbol " + '$PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!',
body: '${SCRIPT, template="groovy-html.template"}',
recipientProviders: [
[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']
],
mimeType: 'text/html',
replyTo: '$DEFAULT_REPLYTO',
to: "adel.el-beik@r3.com"
}
}
}
cleanup {
deleteDir() /* clean up our workspace */
}