From 56a88a93cadd40981c9991aabd7f0b6e0af0c297 Mon Sep 17 00:00:00 2001 From: Micah Abbott Date: Thu, 27 Sep 2018 15:06:01 -0400 Subject: [PATCH] pipeline: don't send Slack update for dev pipelines --- Jenkinsfile.aws-test | 4 +++- Jenkinsfile.cloud | 4 +++- Jenkinsfile.rdgo | 4 +++- Jenkinsfile.treecompose | 4 +++- Jenkinsfile.treecompose-ootpa | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile.aws-test b/Jenkinsfile.aws-test index 6dc2beaab..0ff925691 100644 --- a/Jenkinsfile.aws-test +++ b/Jenkinsfile.aws-test @@ -93,6 +93,8 @@ node(NODE) { currentBuild.result = 'FAILURE' throw e } finally { - utils.notify_status_change currentBuild + if (!params.DRY_RUN) { + utils.notify_status_change currentBuild + } } } diff --git a/Jenkinsfile.cloud b/Jenkinsfile.cloud index 026c93ac0..ca3c2c3ae 100644 --- a/Jenkinsfile.cloud +++ b/Jenkinsfile.cloud @@ -257,6 +257,8 @@ node(NODE) { currentBuild.result = 'FAILURE' throw e } finally { - utils.notify_status_change currentBuild + if (!params.DRY_RUN) { + utils.notify_status_change currentBuild + } } } diff --git a/Jenkinsfile.rdgo b/Jenkinsfile.rdgo index 3a763cb9b..7375fb6a6 100644 --- a/Jenkinsfile.rdgo +++ b/Jenkinsfile.rdgo @@ -83,6 +83,8 @@ node(NODE) { throw e } finally { archiveArtifacts artifacts: "log/**", allowEmptyArchive: true - utils.notify_status_change currentBuild + if (!params.DRY_RUN) { + utils.notify_status_change currentBuild + } } } diff --git a/Jenkinsfile.treecompose b/Jenkinsfile.treecompose index ad6156271..98847648f 100644 --- a/Jenkinsfile.treecompose +++ b/Jenkinsfile.treecompose @@ -133,6 +133,8 @@ node(NODE) { currentBuild.result = 'FAILURE' throw e } finally { - utils.notify_status_change currentBuild + if (!params.DRY_RUN) { + utils.notify_status_change currentBuild + } } } diff --git a/Jenkinsfile.treecompose-ootpa b/Jenkinsfile.treecompose-ootpa index 21a4ff9b7..1920e22e1 100644 --- a/Jenkinsfile.treecompose-ootpa +++ b/Jenkinsfile.treecompose-ootpa @@ -111,6 +111,8 @@ node(NODE) { currentBuild.result = 'FAILURE' throw e } finally { - utils.notify_status_change currentBuild + if (!params.DRY_RUN) { + utils.notify_status_change currentBuild + } } }