Enable ensure_pipeline_policy_pre_succeeds experiment by default
What does this MR do and why?
Remove the ensure_pipeline_policy_pre_succeeds experiment flag and make the .pipeline-policy-pre stage failure behavior the default.
If the .pipeline-policy-pre stage fails or all its jobs are skipped, all jobs in later stages are unconditionally skipped, regardless of scheduling type or when: configuration. This applies to all pipelines with pipeline execution policies.
References
How to set up and validate locally
- Create a project
- Create a pipeline execution policy with a job in
.pipeline-policy-prewhich always fails (script: exit 1) - Add a project job in
.gitlab-ci.ymlwithwhen: alwaysor withneeds: [] - Ensure that the project jobs never start
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #558233
Edited by Martin Cavoj