diff --git a/Jenkinsfile b/Jenkinsfile index 08e73aa4f..7856e91a8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,15 +35,19 @@ pipeline { // Post-build actions post { - slackSend channel: '#slack-test-channel', + success{ + slackSend channel: '#slack-test-channel', color: COLOR_MAP[currentBuild.currentResult], message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} by ${BUILD_USER}\n More info at: ${env.BUILD_URL}" - + } + failure{ + slackSend channel: '#slack-test-channel', + color: COLOR_MAP[currentBuild.currentResult], + message: "*${currentBuild.currentResult}:* Job ${env.JOB_NAME} build ${env.BUILD_NUMBER} by ${BUILD_USER}\n More info at: ${env.BUILD_URL}" + } } - - }