From f0d030e2db9aa9e1c2030bf4fc5ac95dd9ab397f Mon Sep 17 00:00:00 2001 From: Kevin Duret <kduret@centreon.com> Date: Fri, 29 Sep 2017 10:39:56 +0200 Subject: [PATCH] build(jenkinsfile): update jenkinsfile to avoid slack message on build cancel --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 24d474d08f..208990c8c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -163,7 +163,7 @@ try { build job: 'des-mbi-bundle-centos7', wait: false } } catch(e) { - if (env.BRANCH_NAME == '2.8.x') { + if (env.BRANCH_NAME == '2.8.x' && !(${e} =~ /^.+FlowInterruptedException$/)) { slackSend channel: "#monitoring-metrology", color: "#F30031", message: "*FAILURE*: `CENTREON WEB` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}> on branch ${env.BRANCH_NAME}\n" + -- GitLab