INFRA-1746 add slack notifications

This commit is contained in:
ronanbrowne88 2022-05-01 11:27:44 +01:00
parent 05be5d6c42
commit 9bda96ff0a

View File

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