gitlab: new pipeline 'fail'
New pipeline called fail that runs in the 'finish' stage but only when a job fails. The job updates the github status to indicate failure.
This commit is contained in:
parent
b0abe9725d
commit
f7dd0878b9
1 changed files with 10 additions and 0 deletions
|
|
@ -122,3 +122,13 @@ finish:
|
||||||
- shell
|
- shell
|
||||||
script:
|
script:
|
||||||
- schutzbot/update_github_status.sh finish
|
- schutzbot/update_github_status.sh finish
|
||||||
|
|
||||||
|
fail:
|
||||||
|
stage: finish
|
||||||
|
tags:
|
||||||
|
- shell
|
||||||
|
script:
|
||||||
|
- schutzbot/update_github_status.sh fail
|
||||||
|
- exit 1 # make the pipeline fail so it doesn't look like success in gitlab
|
||||||
|
when:
|
||||||
|
on_failure
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue