jenkinsci / jenkinsci/git-plugin

[JENKINS-20427] Build Parameter variable in branch name causes polling to detect false changes in GIT

Open
#2,355 31 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

Create a Job with a parameter:

branch

In GIT configuration set branch to:

${branch}

or

*/${branch}

This causes polling to keep detecting changes, even when there are none.

Everything is fine when I hardcode branch name like so:

*/master

---
Originally reported by m_a_r_k_y, imported from: Build Parameter variable in branch name causes polling to detect false changes in GIT


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

Raw content of original issue

Create a Job with a parameter:
branch

In GIT configuration set branch to:
${branch}
or
*/${branch}

This causes polling to keep detecting changes, even when there are none.

Everything is fine when I hardcode branch name like so:
*/master

environment

```
Jenkins 1.537

Jenkins GIT Plugin 2.0

Jenkins Multiple SCM Plugin 0.2
```

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.