Add inject_policy as default pipeline execution config strategy

What does this MR do and why?

Add inject_policy as default pipeline execution config strategy.

With the new inject_policy strategy, custom policy stages are no longer ignored when injected into the main pipeline.

We make it as default strategy, while supporting inject_ci for backward compatibility.

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.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Existing inject_ci policy New policy Existing inject_policy policy
CleanShot_2025-01-31_at_15.02.16_2x CleanShot_2025-01-31_at_15.04.32_2x CleanShot_2025-01-31_at_15.02.44_2x

How to set up and validate locally

  1. Create a project
  2. Create a new pipeline execution policy
  3. Verify that inject_policy is selected as a default strategy
  4. Switch to .yaml mode and overwrite the strategy to inject_ci
  5. Verify that the third, deprecated strategy shows up and the link to the docs is clickable

Related to #475152 (closed)

Edited by Martin Cavoj

Merge request reports

Loading