Skip to content
Permalink
Browse files

add url to slack notify on failure

  • Loading branch information...
pcaskey committed Feb 12, 2019
1 parent cdc44f2 commit 87373bddf4d08ee20897d7e30a7b3d18b30fae70
Showing with 2 additions and 2 deletions.
  1. +2 −2 Jenkinsfile
@@ -82,7 +82,7 @@ node('docker') {


stage 'Notify' 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){ def handleError(String message){
echo "${message}" echo "${message}"
currentBuild.setResult("FAILED") currentBuild.setResult("FAILED")
slackSend color: 'danger', message: "${message}" slackSend color: 'danger', message: "${message} (<${env.BUILD_URL}|Open>)"
sh 'exit 1' sh 'exit 1'
} }


0 comments on commit 87373bd

Please sign in to comment.
You can’t perform that action at this time.