jenkinsci / jenkinsci/gerrit-trigger-plugin

[JENKINS-49134] Trigger a build when a reviewer is added to the change

Open
#855 0 comments 0 reactions 0 assignees View on GitHub
component:gerrit-trigger-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
226
Forks
289
PR merge metrics
No merged PRs in 30d

Description

Hi,

At the moment there are several events that can trigger a build. Some are missing though, like triggering a build when a reviewer has been added or a review has been (re)assigned. It would be beneficial to have this as well. Ideally any event in Gerrit should (potentially) be used to trigger a build.

Having this option (to trigger a build when a reviewer has been added) will allow us to first run a verification job prior to reviewing a patch. Only when the build is successful a review will be done.

Alternative would be to use the patchset-created event to trigger a build to do a verification. We already use this option for verification builds. Since we want to include additional tests during a pre-review build, we cannot rely on the verification builld. (thus there are 2 distinct builds, one verification build and one pre-review build).

Would be great if this could be added a an upcoming release. Many thanks in advance.

---
Originally reported by johan_vliek, imported from: Trigger a build when a reviewer is added to the change


  • assignee: rsandell
  • status: Open
  • priority: Minor
  • component(s): gerrit-trigger-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

Hi,

At the moment there are several events that can trigger a build. Some are missing though, like triggering a build when a reviewer has been added or a review has been (re)assigned. It would be beneficial to have this as well. Ideally any event in Gerrit should (potentially) be used to trigger a build.

Having this option (to trigger a build when a reviewer has been added) will allow us to first run a verification job prior to reviewing a patch. Only when the build is successful a review will be done.

Alternative would be to use the patchset-created event to trigger a build to do a verification. We already use this option for verification builds. Since we want to include additional tests during a pre-review build, we cannot rely on the verification builld. (thus there are 2 distinct builds, one verification build and one pre-review build).

Would be great if this could be added a an upcoming release. Many thanks in advance.

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.