jenkinsci / jenkinsci/git-plugin

[JENKINS-20969] When branch build parameter is '*', '**' or empty, a stale revision is built

Open
#2,386 7 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 have a build parameter, branch, which is passed to the git "Branches to build" setting. When this parameter is set to '*', '**', or is empty, the last built revision gets built again instead of an updated branch HEAD. Setting this parameter to a specific branch name, such as 'development' or 'master' will build the HEAD of the specified branch. Directly setting git "Branches to build" to '*', '**', or leaving it empty will cause an updated branch HEAD to build properly.

---
Originally reported by rheostat, imported from: When branch build parameter is '*', '**' or empty, a stale revision is built


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

Raw content of original issue

I have a build parameter, branch, which is passed to the git "Branches to build" setting. When this parameter is set to '*', '**', or is empty, the last built revision gets built again instead of an updated branch HEAD. Setting this parameter to a specific branch name, such as 'development' or 'master' will build the HEAD of the specified branch. Directly setting git "Branches to build" to '*', '**', or leaving it empty will cause an updated branch HEAD to build properly.

  • environment: Ubuntu 12.04

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.