jenkinsci / jenkinsci/git-plugin
[JENKINS-53354] Git polling forces workspace-based polling when using parameters in Branch Specifier field
- 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
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)
> 
Contributor guide
Assessment
This issue has not been assessed yet.