Merge pull request #7133 from corda/connelm/INFRA-1743/release-email-notification4.6

INFRA-1743 Activate C4 email notifications Open source and Ent
This commit is contained in:
Ronan Browne 2022-03-25 17:33:19 +00:00 committed by GitHub
commit 1001926075
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 */
}