mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-14 10:44:52 +01:00
Merge branch 'main' of gitlab.sectorq.eu:jaydee/portainer
This commit is contained in:
@@ -2,6 +2,7 @@ stages: # List of stages for jobs, and their order of execution
|
|||||||
- lint
|
- lint
|
||||||
- build
|
- build
|
||||||
- clean
|
- clean
|
||||||
|
- notify
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: lint
|
stage: lint
|
||||||
@@ -45,4 +46,13 @@ cleanup_on_failure_job:
|
|||||||
stage: clean # Should be in a later stage than the job that might fail
|
stage: clean # Should be in a later stage than the job that might fail
|
||||||
when: on_failure # <-- This is the key keyword
|
when: on_failure # <-- This is the key keyword
|
||||||
script:
|
script:
|
||||||
- rm -rf /home/gitlab-runner/builds/*
|
- rm -rf /home/gitlab-runner/builds/*
|
||||||
|
|
||||||
|
notify:
|
||||||
|
stage: notify # Should be in a later stage than the job that might fail
|
||||||
|
when: on_failure # <-- This is the key keyword
|
||||||
|
script:
|
||||||
|
- curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl?message='build job completed'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user