jenkinsci / jenkinsci/git-plugin

[JENKINS-30345] broken workspace less polling

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

Description

Job configuration is pretty simple:

url to repo, credentials, one branchspec with

```
**
```

or

```
*
```

. Worked before updates (sorry lost previous versions). Job assigned to cloud based slave. After update constantly prints "no workspace triggering build immediately" (lost exact message because bypassed issue atm).


  1. First of all with groovy build step i checked that job configuration returns true for requiresWorkspaceForPolling()

  2. I have no extensions so this line of code is bad https://github.com/jenkinsci/git-plugin/blob/054359b8601dff8234b6c45bf2c701c1616f635d/src/main/java/hudson/plugins/git/GitSCM.java#L521

  3. Then there are many inconsistency in code:


So to get working polling i set SPACE in branchspec.

Sorry, but have no time for providing any fixes in this over hacked plugin code.

Status blocker, because with cloud based slaves it triggers builds infinitely.

---
Originally reported by integer, imported from: broken workspace less polling


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

Raw content of original issue

Job configuration is pretty simple:
url to repo, credentials, one branchspec with



**


or



*


. Worked before updates (sorry lost previous versions). Job assigned to cloud based slave. After update constantly prints "no workspace triggering build immediately" (lost exact message because bypassed issue atm).


  1. First of all with groovy build step i checked that job configuration returns true for requiresWorkspaceForPolling()

  2. I have no extensions so this line of code is bad https://github.com/jenkinsci/git-plugin/blob/054359b8601dff8234b6c45bf2c701c1616f635d/src/main/java/hudson/plugins/git/GitSCM.java#L521

  3. Then there are many inconsistency in code:


So to get working polling i set SPACE in branchspec.
Sorry, but have no time for providing any fixes in this over hacked plugin code.
Status blocker, because with cloud based slaves it triggers builds infinitely.

environment

```
git-plugin 2.4.0, 2.3.5

git-client-plugin 1.18.0, 1.19.0

jenkins-lts 1.609.3
```

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.