Reputation: 786
I am having troubles how to properly configure Gerrit trigger to only triggers when changes are made to master or other branches (excluding refs/for/rev).
For now I have type:Path, pattern: **/* but it catches any changes (on master/branches and on refs/for/*)
How to construct correct pattern to trigger when refspecs changes only on master and branches but not on refs/for/* ?
Upvotes: 2
Views: 2317
Reputation: 22411
In Jenkins > Job > Configure > Gerrit Trigger > Trigger on
Add: Change Merged
Do not use any other event like "Patchset Created" or "Draft Published"
Upvotes: 2