From 987d8461c54e690cc31fdec3a7168dfed117f6fd Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sun, 13 Sep 2026 19:03:49 -0400 Subject: [PATCH] pipeline cleanup --- .gitlab-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33ba065a..0e0cca99 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -600,7 +600,8 @@ nightly_delete_build_machines: rules: - if: $IS_NIGHTLY == "true" -# If any steps fail this will run the build machine tear down scripts +# If any steps fail this will run the build machine tear down scripts. Each is gated to the +# pipeline that creates its build machine; a failed test pipeline has nothing to tear down. stable_failed_pipeline_actions: stage: failed @@ -611,7 +612,9 @@ stable_failed_pipeline_actions: script: - uv --directory scripts/cicd-python sync - uv --directory scripts/cicd-python run veilid_release_utils.py --delete-build-machine - when: on_failure + rules: + - if: '$CI_COMMIT_TAG =~ /v\d.+/' + when: on_failure nightly_failed_pipeline_actions: stage: failed @@ -622,4 +625,6 @@ nightly_failed_pipeline_actions: script: - uv --directory scripts/cicd-python sync - uv --directory scripts/cicd-python run veilid_release_utils.py --delete-build-machine - when: on_failure + rules: + - if: $IS_NIGHTLY == "true" + when: on_failure