Add pipeline failure job that destroys build machines [ci skip]

This commit is contained in:
TC 2024-09-15 20:20:17 +00:00
parent f3cbfbe610
commit 9fb54947e2

View File

@ -10,6 +10,7 @@ stages:
- build_packages - build_packages
- release - release
- distribute - distribute
- failed
format: format:
stage: test stage: test
@ -404,3 +405,15 @@ nightly_delete_build_machines:
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete amd64-rpm - bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete amd64-rpm
rules: rules:
- if: $IS_NIGHTLY == "true" - if: $IS_NIGHTLY == "true"
# If any steps fail this will run the build machine tear down scripts
failed_pipeline_actions:
stage: failed
tags:
- build-orchestration
script:
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete amd64-deb
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete arm64-deb
- bash scripts/cicd/build-orchestration/build-machine-ctrl.sh delete amd64-rpm
when: on_failure