Skip to content

[JENKINS-73579] Ability to not trigger a build for the event if a build is already in queue for the given job #993

@jenkins-infra-bot

Description

@jenkins-infra-bot

The Gerrit trigger plugin triggers a build for each event. This is with the assumption that the build will run only for that specific event. This works well for short duration pipelines. 

There are scenarios where the pipeline might run for a longer time, and in such cases, if we trigger one build per event, and number of events is high, then the total time taken for all event to get validated will be high. The number of builds in queue will also be high. 

In such scenarios, gerrit trigger can be used just to trigger the pipeline but pick the latest commit available at the time of checkout. So if the pipeline is running for 1 hour, then the next build will validate all the ref changes that got merged in that one hour rather than just validating one ref change. 

so in order to use gerrit plugin only as a point of pipeline trigger, we need a new feature which will not trigger many builds into queue.


Originally reported by vishnuprakash, imported from: Ability to not trigger a build for the event if a build is already in queue for the given job
  • assignee: rsandell
  • status: Open
  • priority: Major
  • component(s): gerrit-trigger-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07
Raw content of original issue

The Gerrit trigger plugin triggers a build for each event. This is with the assumption that the build will run only for that specific event. This works well for short duration pipelines. 

There are scenarios where the pipeline might run for a longer time, and in such cases, if we trigger one build per event, and number of events is high, then the total time taken for all event to get validated will be high. The number of builds in queue will also be high. 

In such scenarios, gerrit trigger can be used just to trigger the pipeline but pick the latest commit available at the time of checkout. So if the pipeline is running for 1 hour, then the next build will validate all the ref changes that got merged in that one hour rather than just validating one ref change. 

so in order to use gerrit plugin only as a point of pipeline trigger, we need a new feature which will not trigger many builds into queue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions