jenkinsci / jenkinsci/branch-api-plugin
[JENKINS-54468] Not applicable Branch Build Strategies are available in the Organization UI
- Dominant language
- Java
- Stars
- 39
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
The list of available branch build strategies for organizations always contains all strategies, independently of the SCMSource and / or project type.
This is because the list of available strategies is loaded like this :
<j:set var="descriptors" value="${descriptor.getPropertyType(instance,'buildStrategies').applicableItemDescriptors}"/>
Which bypasses all the checks performed by BranchBuildStrategyDescriptor.all(project, sourceDescriptor).
---
Originally reported by mryan, imported from: Not applicable Branch Build Strategies are available in the Organization UI
Raw content of original issue
The list of available branch build strategies for organizations always contains all strategies, independently of the SCMSource and / or project type.
This is because the list of available strategies is loaded like this :
<j:set var="descriptors" value="${descriptor.getPropertyType(instance,'buildStrategies').applicableItemDescriptors}"/>
Which bypasses all the checks performed by BranchBuildStrategyDescriptor.all(project, sourceDescriptor).
Contributor guide
Assessment
This issue has not been assessed yet.