From 87373bddf4d08ee20897d7e30a7b3d18b30fae70 Mon Sep 17 00:00:00 2001 From: Paul Caskey Date: Tue, 12 Feb 2019 19:37:02 +0000 Subject: [PATCH] add url to slack notify on failure --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cf3a68d..9ea40c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,7 +82,7 @@ node('docker') { stage 'Notify' - slackSend color: 'good', message: "$maintainer/$imagename:$tag pushed to DockerHubi (<${env.BUILD_URL}|Open>)" + slackSend color: 'good', message: "$maintainer/$imagename:$tag pushed to DockerHub" } @@ -99,7 +99,7 @@ def imagename() { def handleError(String message){ echo "${message}" currentBuild.setResult("FAILED") - slackSend color: 'danger', message: "${message}" + slackSend color: 'danger', message: "${message} (<${env.BUILD_URL}|Open>)" sh 'exit 1' }