jenkinsci / jenkinsci/git-plugin

[JENKINS-53354] Git polling forces workspace-based polling when using parameters in Branch Specifier field

Open
#3,341 0 comments 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

We're using dynamic docker slaves which are spun up to build and then immediately deleted when the job is completed. We ran into an issue where the git polling was not working and tracked it down to the use of a parameter in the Branch Specifier field (See screenshot). 

Having to hard-code this value into the field is fine but we prefer to use a parameter to avoid having to hard-code this value in other related fields which adds the risk of missing one when making a job change.

The same problem seems to also affect the Lightweight Checkout option.

---
Originally reported by jsaliga, imported from: Git polling forces workspace-based polling when using parameters in Branch Specifier field


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

Raw content of original issue

We're using dynamic docker slaves which are spun up to build and then immediately deleted when the job is completed. We ran into an issue where the git polling was not working and tracked it down to the use of a parameter in the Branch Specifier field (See screenshot). 

Having to hard-code this value into the field is fine but we prefer to use a parameter to avoid having to hard-code this value in other related fields which adds the risk of missing one when making a job change.

The same problem seems to also affect the Lightweight Checkout option.

environment

```
Jenkins server v2.121.2

Git plugin v3.9.1

Git client plugin v2.7.3
```

1 attachment

- [image-2018-08-30-11-41-32-133.png](https://issues.jenkins.io/secure/attachment/43968/image-2018-08-30-11-41-32-133.png)
> ![image-2018-08-30-11-41-32-133.png](https://issues.jenkins.io/secure/attachment/43968/image-2018-08-30-11-41-32-133.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.