slack notifications
change slack notifications
@@ -376,8 +376,14 @@ pipeline {
script {
setTestsresults()
if (currentBuild.result != null && currentBuild.result != 'SUCCESS') {
+
+ try {
+ slackSend channel: "@${AUTHOR_NAME}", color: '#FF0000', message: "[${JOB_NAME}]: build ${currentBuild.result}, ${BUILD_URL} owner: @${AUTHOR_NAME}"
+ }
+ catch (exc) {
slackSend channel: '#cloud-dev-ci', color: '#FF0000', message: "[${JOB_NAME}]: build ${currentBuild.result}, ${BUILD_URL} owner: @${AUTHOR_NAME}"
}
+ }
if (env.CHANGE_URL) {
for (comment in pullRequest.comments) {
println("Author: ${comment.user}, Comment: ${comment.body}")
