Support stages from policies with override_project_ci strategy
What does this MR do and why?
Support stages from policies with override_project_ci strategy.
If there is a pipeline execution policy with strategy override_project_ci
, we use its declared stages when we inject jobs.
If there are multiple override_project_ci
policies, the stages must be matching - all stages must be a subset of the largest stages set.
Depends on Refactor PEP using PipelineContext (!172295 - merged).
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Create a project
- Create a pipeline execution policy with
override_project_ci
strategy - In the policy CI YAML, use a non-standard stage such as
policy-test
- Run the pipeline and verify that jobs using
policy-test
stage are present in the pipeline
Related to #494431 (closed)