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 59a605c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline-utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ def notify_status_change(build) {
}

try {
slackSend channel: '#jenkins-coreos', color: color, message: message
if (!params.DRY_RUN) {
slackSend channel: '#jenkins-coreos', color: color, message: message
}
} catch (NoSuchMethodError err) {
// Log the message in the console if the Slack plugin is not installed.
echo message
Expand Down

0 comments on commit 59a605c

Please sign in to comment.