jenkinsci / jenkinsci/git-plugin

[JENKINS-46279] Git plugin marks the same commit to be built multiple times

Open
#3,178 10 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 have a pipeline job (live branch) that's set up to build a certain branch - every 10 minutes it polls for changes. The rest of our builds are set up to do a multibranch pipeline for the other branches in our repository (which we do to work around the fact we can't set a job priority for our live branch to build it before other branches).

I currently have 9 builds for our live branch job in the queue because it polls for changes and sees a new commit in there which hasn't been built. Because there's no free executor at the moment, none of them have started so the commit hasn't been marked as "built" yet. The multibranch pipeline job doesn't do this.

---
Originally reported by drugcrazed, imported from: Git plugin marks the same commit to be built multiple times


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

Raw content of original issue

We have a pipeline job (live branch) that's set up to build a certain branch - every 10 minutes it polls for changes. The rest of our builds are set up to do a multibranch pipeline for the other branches in our repository (which we do to work around the fact we can't set a job priority for our live branch to build it before other branches).

I currently have 9 builds for our live branch job in the queue because it polls for changes and sees a new commit in there which hasn't been built. Because there's no free executor at the moment, none of them have started so the commit hasn't been marked as "built" yet. The multibranch pipeline job doesn't do this.

environment

```
Git plugin 3.5.1

Jenkins 2.74
```

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.