Merge pull request from corda/connelm/INFRA-1743/release-email-notification4.5

INFRA-1743 Activate C4 email notifications Open source and Ent
This commit is contained in:
Ronan Browne 2022-03-25 17:33:06 +00:00 committed by GitHub
commit b5d11e7e2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,6 +383,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 */
}