jenkinsci / jenkinsci/git-plugin

[JENKINS-24648] Git poll always finds changes when there is none when used with Gerrit trigger strategy

Open
#2,529 14 comments 0 reactions 0 assignees View on GitHub
component:gerrit-trigger-plugin 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 gerrit configured to react on changes in all branches (**) but the buids are using the property $GERRIT_BRANCH set to ref/heads/my_branch

WHen polls are running i see that the last built revision matches the ones that are available in mainline - there is no other revisions that are coming from the git ls-remote command that poll uses. Yet git poll reports it found changes and it triggeres the rebuild.

in changes list for the project all latest builds are having the same one commit over and over again.

---
Originally reported by eguess74, imported from: Git poll always finds changes when there is none when used with Gerrit trigger strategy


  • status: Open
  • priority: Major
  • component(s): gerrit-trigger-plugin, git-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 2025-12-02

Raw content of original issue

I have gerrit configured to react on changes in all branches (**) but the buids are using the property $GERRIT_BRANCH set to ref/heads/my_branch
WHen polls are running i see that the last built revision matches the ones that are available in mainline - there is no other revisions that are coming from the git ls-remote command that poll uses. Yet git poll reports it found changes and it triggeres the rebuild.
in changes list for the project all latest builds are having the same one commit over and over again.


  • environment: linux

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.