From 59a605cdd4a4887f960c2287c4aae2d40c1dff45 Mon Sep 17 00:00:00 2001 From: Micah Abbott Date: Thu, 27 Sep 2018 15:23:42 -0400 Subject: [PATCH] utils: don't send Slack update for dev pipelines --- pipeline-utils.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pipeline-utils.groovy b/pipeline-utils.groovy index ed0f5349f..7df210171 100644 --- a/pipeline-utils.groovy +++ b/pipeline-utils.groovy @@ -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