Update .gitlab-ci.yml file

This commit is contained in:
2025-12-04 23:42:26 +01:00
parent f06abe7abb
commit d42f7dba0c

View File

@@ -42,6 +42,7 @@ clean-job: # This job runs in the build stage, which runs first.
- ls -la /home/gitlab-runner/builds/*
rules:
- if: '$CI_COMMIT_MESSAGE =~ /build/'
cleanup_on_failure_job:
stage: clean # Should be in a later stage than the job that might fail
when: on_failure # <-- This is the key keyword