jenkinsci / jenkinsci/git-plugin

[JENKINS-30350] Jobs get triggered twice from polling git scm

Open
#2,730 23 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

We are seeing a weird problem occasionally on our jenkins setup ver 1.627

git client 1.19

git plugin 2.4 on ubuntu machine.

I have a job configured to poll scm every 5 minutes

sometimes, when there is a change the job gets triggered twice

once with the relevant changes and the second time says "no changes"

---
Originally reported by ohadbasan, imported from: Jobs get triggered twice from polling git scm


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

Raw content of original issue

We are seeing a weird problem occasionally on our jenkins setup ver 1.627
git client 1.19
git plugin 2.4 on ubuntu machine.
I have a job configured to poll scm every 5 minutes
sometimes, when there is a change the job gets triggered twice
once with the relevant changes and the second time says "no changes"

1 attachment

- [image-2021-01-19-22-27-11-905.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/53853/image-2021-01-19-22-27-11-905.png)
> ![image-2021-01-19-22-27-11-905.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-misc/refs/heads/main/attachments/53853/image-2021-01-19-22-27-11-905.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.