Update pipeline sources for branches targeting
What does this MR do and why?
Update pipeline sources for branches targeting
- when testing the feature, branch options that
targetother branches (e.g.targets all default branchesandtargets all protected brancheshad some issues with supporting certain pipeline sources - we will investigate this issue in Implement all pipeline sources for branches tar... (#554272 - closed), but for now we are going to limit the pipeline source options for these selections
- update options to limit selection
- reset pipeline sources every time the branch type changes
- update tests
Changelog: changed
EE: true
References
Screenshots or screen recordings
| Scenario | Before | After |
|---|---|---|
| branch_type: targets ... | ![]() |
![]() |
| other selections | ![]() |
No changes |
How to set up and validate locally
- Upload a GitLab Ultimate license
- Enable the
flexible_scan_execution_policyfeature flag in http://gdk.test:3443/rails/features - Navigate to a project/group => Secure => Policies => New policy => Scan execution policy => Select
custom template - Verify the conditions show many pipeline sources for all branch selections (e.g.
all branches,default branch,all protected branches, andspecific protected branches) - Verify the conditions show only
Merge request eventandCode pushfortargets all protected branchesandtargets all default branches
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 #549571 (closed)
Edited by Alexander Turinske


