mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2025-12-15 19:14:52 +01:00
Update .gitlab-ci.yml file
This commit is contained in:
@@ -39,14 +39,14 @@ build-job: # This job runs in the build stage, which runs first.
|
|||||||
clean-job: # This job runs in the build stage, which runs first.
|
clean-job: # This job runs in the build stage, which runs first.
|
||||||
stage: clean
|
stage: clean
|
||||||
script:
|
script:
|
||||||
- rm -rf /home/gitlab-runner/builds/*
|
- ls -la /home/gitlab-runner/builds/*
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_MESSAGE =~ /build/'
|
- if: '$CI_COMMIT_MESSAGE =~ /build/'
|
||||||
cleanup_on_failure_job:
|
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/*
|
- ls -la /home/gitlab-runner/builds/*
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
stage: notify # Should be in a later stage than the job that might fail
|
stage: notify # Should be in a later stage than the job that might fail
|
||||||
|
|||||||
Reference in New Issue
Block a user