Skip to content

Commit

Permalink
add url to slack notify on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Feb 12, 2019
1 parent cdc44f2 commit 87373bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

}

Expand All @@ -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'
}

0 comments on commit 87373bd

Please sign in to comment.