jenkinsci / jenkinsci/git-plugin

[JENKINS-26837] Multiple Commits to Same Branch During Quiet Period Trigger Multiple Builds

Open
#2,599 0 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 have a job monitoring a Git repository for commits to /release/. The job is configured with a 10-minute quiet period, and the quiet period is indeed enforced. However, when multiple commits are made to the same release branch they do not result in a single build. Instead, each commit triggers a new build. I suspect this is related to the wildcard match on all release branches, since despite checking out to a local branch the GIT_BRANCH variable is always set to "detached," but perhaps not.

---
Originally reported by dagan, imported from: Multiple Commits to Same Branch During Quiet Period Trigger Multiple Builds


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

Raw content of original issue

We have a job monitoring a Git repository for commits to /release/. The job is configured with a 10-minute quiet period, and the quiet period is indeed enforced. However, when multiple commits are made to the same release branch they do not result in a single build. Instead, each commit triggers a new build. I suspect this is related to the wildcard match on all release branches, since despite checking out to a local branch the GIT_BRANCH variable is always set to "detached," but perhaps not.

  • environment: Jenkins v1.590, git-plugin v2.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.