jenkinsci / jenkinsci/branch-api-plugin

[JENKINS-54468] Not applicable Branch Build Strategies are available in the Organization UI

Open
#707 0 comments 0 reactions 0 assignees View on GitHub
component:branch-api-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): branch-api-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251211-141027

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.