Skip to content

Update yaml schema with array for pipeline execution policy

Artur Fedorov requested to merge 467376-policies-pipeline-execution-include into master

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)
  1. Go to Group/Projects
  2. Secure -> Polices
  3. New policy -> Pipeline Execution policy
  4. Select project and type in file name
  5. Make sure the value is an array in yaml preview

Related to #467376 (closed)

Edited by Artur Fedorov

Merge request reports