Merge pull request #7158 from corda/ronanb/INFRA-1746/c4-slack-notifications-4.10

INFRA-1746: add C4 slack notifications and clean up MS teams code.
This commit is contained in:
Ronan Browne 2022-05-05 13:00:47 +01:00 committed by GitHub
commit 00ff06c625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
* Jenkins pipeline to build Corda OS release branches and tags.
* PLEASE NOTE: we DO want to run a build for each commit!!!
*/
@Library('corda-shared-build-pipeline-steps')
/**
* Sense environment
@ -386,6 +387,21 @@ pipeline {
}
}
}
success {
script {
sendSlackNotifications("good", "BUILD PASSED", false, "#corda-corda4-build-notifications")
}
}
unstable {
script {
sendSlackNotifications("warning", "BUILD UNSTABLE - Unstable Builds are likely a result of Nexus Sonar Scanner violations", false, "#corda-corda4-build-notifications")
}
}
failure {
script {
sendSlackNotifications("danger", "BUILD FAILURE", true, "#corda-corda4-build-notifications")
}
}
cleanup {
deleteDir() /* clean up our workspace */
}