jenkinsci / jenkinsci/git-plugin

[JENKINS-21719] Unable to get Branch to build variable to work with wildcard

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

Description

I've included a snapshot of our git config in Jenkins. I'm trying to get a parameterized build to work by passing in a variable containing the branch I want built. It keeps checking out the branch that has the latest commit. Am I missing something obvious?

---
Originally reported by chrisdrobison, imported from: Unable to get Branch to build variable to work with wildcard


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

Raw content of original issue

I've included a snapshot of our git config in Jenkins. I'm trying to get a parameterized build to work by passing in a variable containing the branch I want built. It keeps checking out the branch that has the latest commit. Am I missing something obvious?

  • environment: Windows Server 2012

1 attachment

- [Capture.PNG](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/25259/Capture.PNG)
> ![Capture.PNG](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/25259/Capture.PNG)

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.