Make triggered multi-project pipelines uninterruptible (#7076)

This commit is contained in:
Mira Ressel
2023-04-14 10:42:51 +02:00
committed by GitHub
parent b50e512ed4
commit 83a86ab16c
+18
View File
@@ -15,6 +15,7 @@
# moment of time.
stages:
- .pre
- weights
- check
- test
@@ -185,6 +186,23 @@ default:
after_script:
- buildah logout --all
#### stage: .pre
# By default our pipelines are interruptible, but some special pipelines shouldn't be interrupted:
# * multi-project pipelines such as the ones triggered by the scripts repo
#
# In those cases, we add an uninterruptible .pre job; once that one has started,
# the entire pipeline becomes uninterruptible.
uninterruptible-pipeline:
extends: .kubernetes-env
variables:
CI_IMAGE: "paritytech/tools:latest"
stage: .pre
interruptible: false
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
script: "true"
include:
# weights jobs
- scripts/ci/gitlab/pipeline/weights.yml