jenkinsci / jenkinsci/branch-api-plugin

[JENKINS-75586] add maximum indexing capacity configuration capability

Open
#800 2 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

looking at this line https://github.com/mattmoor/branch-api-plugin/blob/f4890e44a3686e5ae19d0a09ee408148a8f1fb16/src/main/java/jenkins/branch/MultiBranchProject.java#L2293

this is the entire code snippet from the git repo - notice the hard coded number in the second if statement....

public CauseOfBlockage canRun(Queue.Item item) {

            if (item.task instanceof MultiBranchProject) {
                if (indexingCount() > 5) {
                    // TODO make the limit configurable
                    return CauseOfBlockage.fromMessage(Messages._MultiBranchProject_MaxConcurrentIndexing());
                }
            }
            return null;
        }

I see the maximum indexing capacity is hard coded.

looking at the next line shows a TODO line with "make the limit configurable".

in our environment, we have hundreds of multibranch pipelines and the configuration of this parameter is critical to increase the amount of scanned branches/tag in parallel.

---
Originally reported by amidar, imported from: add maximum indexing capacity configuration capability


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

Raw content of original issue

looking at this line https://github.com/mattmoor/branch-api-plugin/blob/f4890e44a3686e5ae19d0a09ee408148a8f1fb16/src/main/java/jenkins/branch/MultiBranchProject.java#L2293

this is the entire code snippet from the git repo - notice the hard coded number in the second if statement....



public CauseOfBlockage canRun(Queue.Item item) {

            if (item.task instanceof MultiBranchProject) {
                if (indexingCount() > 5) {
                    // TODO make the limit configurable
                    return CauseOfBlockage.fromMessage(Messages._MultiBranchProject_MaxConcurrentIndexing());
                }
            }
            return null;
        }


I see the maximum indexing capacity is hard coded.

looking at the next line shows a TODO line with "make the limit configurable".

in our environment, we have hundreds of multibranch pipelines and the configuration of this parameter is critical to increase the amount of scanned branches/tag in parallel.

  • environment: All - the feature has not been developed yet.

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.