jenkinsci / jenkinsci/gerrit-trigger-plugin

[JENKINS-52776] Gerrit Build Current Patches Only not working with triggers

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

Description

When Gerrit trigger is included in declarative pipeline 

Excample:

```
triggers {
gerrit(gerritProjects: [[branches : [[compareType: 'PLAIN', pattern: 'master']],
compareType : 'PLAIN',
disableStrictForbiddenFileVerification: false,
pattern : 'apps']],
serverName: 'gerrit.server.com')
}

```

Option "Build Current Patches Only" in plugin config does not take effect. 

---
Originally reported by grzzie, imported from: Gerrit Build Current Patches Only not working with triggers


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

Raw content of original issue

When Gerrit trigger is included in declarative pipeline 

Excample:



 triggers {

gerrit(gerritProjects: [[branches : [[compareType: 'PLAIN', pattern: 'master']],
compareType : 'PLAIN',
disableStrictForbiddenFileVerification: false,
pattern : 'apps']],
serverName: 'gerrit.server.com')
}


Option "Build Current Patches Only" in plugin config does not take effect. 

environment

```
Jenkins 2.121.2

Gerrit Trigger 2.27.5
```

1 attachment

- [current_patchset_custom_trigger.log.log](https://issues.jenkins.io/secure/attachment/46563/current_patchset_custom_trigger.log.log)

Contributor guide

Open the contributing guide

Research direction

The issue names no source files or tests; start by reproducing the declarative pipeline example and reviewing current_patchset_custom_trigger.log.log. Then trace how the gerrit-trigger-plugin handles the "Build Current Patches Only" option for triggers. Done means the configured option affects trigger behavior in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.