Skip to content

Enforce job uniqueness with pipeline execution policies

What does this MR do and why?

With this change, the pipeline will hard fail when jobs injected by Pipeline execution policies are not unique.

Related to #471620.

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

CleanShot_2024-07-10_at_18.24.44_2x

CleanShot_2024-07-10_at_18.25.04_2x

CleanShot_2024-07-10_at_17.08.23

How to set up and validate locally

  1. Create project with sample .gitlab-ci.yml
  2. Create a Pipeline execution policy and define a job with the same name as in the project CI
  3. Try to run pipeline and verify that the correct error is displayed
Edited by Martin Čavoj

Merge request reports