Private GIT

Skip to content
Snippets Groups Projects
Commit 3d926ada authored by Kevin Duret's avatar Kevin Duret Committed by Matthieu Kermagoret
Browse files

build(jenkinsfile): update jenkinsfile to avoid slack message on build cancel

parent 9865bc28
Branches
No related tags found
No related merge requests found
...@@ -204,7 +204,7 @@ try { ...@@ -204,7 +204,7 @@ try {
build job: 'des-mbi-bundle-centos7', wait: false build job: 'des-mbi-bundle-centos7', wait: false
} }
} catch(e) { } catch(e) {
if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master' && !(${e} =~ /^.+FlowInterruptedException$/)) {
slackSend channel: "#monitoring-metrology", slackSend channel: "#monitoring-metrology",
color: "#F30031", color: "#F30031",
message: "*FAILURE*: `CENTREON WEB` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}> on branch ${env.BRANCH_NAME}\n" + message: "*FAILURE*: `CENTREON WEB` <${env.BUILD_URL}|build #${env.BUILD_NUMBER}> on branch ${env.BRANCH_NAME}\n" +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment