Commit afdf1df9 authored by Peter van 't Hof's avatar Peter van 't Hof

Fix abort option in pipeline for slack

parent 5bc58a7a
...@@ -31,8 +31,10 @@ node('local') { ...@@ -31,8 +31,10 @@ node('local') {
} }
} catch (e) { } catch (e) {
currentBuild.result = "FAILED" if(currentBuild.result != null && !"FAILED".equals(currentBuild.result)) {
slackSend (color: '#FF0000', message: "FAILED: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)", channel: '#biopet-bot', teamDomain: 'lumc', tokenCredentialId: 'lumc') currentBuild.result = "FAILED"
}
slackSend (color: '#FF0000', message: "${currentBuild.result}: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)", channel: '#biopet-bot', teamDomain: 'lumc', tokenCredentialId: 'lumc')
throw e throw e
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment