jenkinsci / jenkinsci/git-plugin

[JENKINS-30300] Unable to specify a branch to build when using parameterized job with multiple branches

Open
#2,724 1 comment 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

When having a job that is configured to build multiple branches, it is impossible to use the paramatized build to run a particular job. Instead the latest branch is build.

If I have a job that builds "origin/master", "origin/release" and "origin/$branch" (for the parameter), and I try build "origin/potato", then the last built branch always builds, not the one I specify in the parameter.

---
Originally reported by adrianmoisey, imported from: Unable to specify a branch to build when using parameterized job with multiple branches


  • status: Open
  • priority: Minor
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 2025-12-02

Raw content of original issue

When having a job that is configured to build multiple branches, it is impossible to use the paramatized build to run a particular job. Instead the latest branch is build.

If I have a job that builds "origin/master", "origin/release" and "origin/$branch" (for the parameter), and I try build "origin/potato", then the last built branch always builds, not the one I specify in the parameter.

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.