Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
afdf1df9
Commit
afdf1df9
authored
Jan 19, 2017
by
Peter van 't Hof
Browse files
Fix abort option in pipeline for slack
parent
5bc58a7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
afdf1df9
...
...
@@ -31,8 +31,10 @@ node('local') {
}
}
catch
(
e
)
{
currentBuild
.
result
=
"FAILED"
slackSend
(
color:
'#FF0000'
,
message:
"FAILED: Job '${env.JOB_NAME} #${env.BUILD_NUMBER}' (<${env.BUILD_URL}|Open>)"
,
channel:
'#biopet-bot'
,
teamDomain:
'lumc'
,
tokenCredentialId:
'lumc'
)
if
(
currentBuild
.
result
!=
null
&&
!
"FAILED"
.
equals
(
currentBuild
.
result
))
{
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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment