Make downstream pipelines manual if draft/wip MR
What does this MR do?
Add a rule to make downstream pipelines manual jobs
if the title of the MR starts with draft:
or wip:
.
Also, set allow_failure
to true
, so that the pipeline continues.
This relies on predefined CI variables that exist only when the pipelines are for merge requests, so we need to include Workflows/MergeRequest-Pipelines.gitlab-ci.yml instead of Workflows/Branch-Pipelines.gitlab-ci.yml.
Warning! It only responds to a subset of what triggers the Draft status. See documentation
See also gitlab-org/gitlab#275981 about adding a CI variable that tells when the MR is marked as a draft. This would make the CI configuration easier to maintain.
What are the relevant issue numbers?
None
Does this MR meet the acceptance criteria?
Edited by Fabien Catteau