jenkinsci / jenkinsci/gerrit-trigger-plugin
[JENKINS-52776] Gerrit Build Current Patches Only not working with triggers
- 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
rsandell
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
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