how to configure Gerrit trigger to trigger only when master or branches changes in pipeline script in Jenkins

118 views
Skip to first unread message

dasauto

unread,
Aug 2, 2017, 6:35:42 AM8/2/17
to Jenkins Users
Hi

I am having troubles how to properly configure pipeline job with Gerrit trigger.

I would like to start a job only when master or any branch is changed with the exclusion of refs/for/master.
In Gerrit trigger configuration tab, Gerrit Project -> Branches I have Path: ** (I don't know the names of branches as they will be created by devs by themselves).
Trigger On: Refs updated.

Problem is that anytime changes are pushed to refs/for/master , it triggers a job with trigger Refs updated.


What am I missing?

Victor Martinez

unread,
Aug 2, 2017, 11:26:13 AM8/2/17
to Jenkins Users

dasauto

unread,
Aug 3, 2017, 4:17:00 AM8/3/17
to Jenkins Users
I already checked that before submitting question :/
It is not stated in the search what should be the settings of Gerrit Trigger in job ( type of triggers, Branches -> Pattern ).
Reply all
Reply to author
Forward
0 new messages