Update yaml schema with array for pipeline execution policy
What does this MR do and why?
The code changes are related to a feature that allows users to define custom configuration files for their CI/CD pipelines. The main modifications are:
- Instead of Object schema now supports only array
- Aligned with backend validation schema
- Updated tests
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.
Description | UI |
---|---|
Select include as array | array.mov |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Enable feature flag
Feature.enable(:pipeline_execution_policy_type)
- Go to Group/Projects
- Secure -> Polices
- New policy -> Pipeline Execution policy
- Select project and type in file name
- Make sure the value is an array in
yaml
preview
Related to #467376 (closed)
Edited by Artur Fedorov