From 3d926ada0d6b8a56564e775abed799c99043dc93 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 8be1af74e1..c698fa9377 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -204,7 +204,7 @@ try { build job: 'des-mbi-bundle-centos7', wait: false } } catch(e) { - if (env.BRANCH_NAME == 'master') { + if (env.BRANCH_NAME == 'master' && !(${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