jozefow
jozefow

Reputation: 786

how to configure Gerrit trigger to trigger only when master or branches changes excluding (refs/for/*)?

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

Answers (1)

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

Related Questions