From 94bd37243f866d20ce7c5a4dc9c95be719aba979 Mon Sep 17 00:00:00 2001 From: carlitalabbe Date: Thu, 2 Apr 2020 16:32:25 -0400 Subject: [PATCH] ehhhhh --- Jenkinsfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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}" + } } - - }