Skip to content

Commit

Permalink
utils: don't send Slack update for dev pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
miabbott committed Sep 27, 2018
1 parent e516f9b commit df5e1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline-utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def notify_status_change(build) {
def color = ''
def message = "<${env.BUILD_URL}|Build ${env.BUILD_NUMBER} of ${env.JOB_NAME}>"

if (build.currentResult == build.previousBuild?.result)
if (build.currentResult == build.previousBuild?.result || params.DRY_RUN)
return

if (build.previousBuild?.result == null) {
Expand Down

0 comments on commit df5e1c6

Please sign in to comment.