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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 ).