Thanks. I set  Refspec to $GERRIT_REFSPEC, branches to $GERRIT_BRANCH and 
it didn't work for me. Then I changed the branch to origin/$GERRIT_BRANCH, 
it all worked. I guess that the $GERRIT_BRANCH only pass "master" to git 
plugin, and it need full branch name. 
Thanks again and this do solve my problem!


On Monday, October 26, 2015 at 11:42:45 PM UTC+8, Björn Pedersen wrote:
>
>
>
> Am Montag, 26. Oktober 2015 10:43:23 UTC+1 schrieb Andy Wang:
>>
>> Hi Peter,
>>
>> Same thing happened to me as well. I'm using Jenkins-1.634; 
>> Git-Plugin-2.4.0; Git-Client-Plugin-1.19.0; Gerrit-trigger:2.16.0
>>
>> I configed the Gerrit Trigger plugin on jenkins based on the article 
>> https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger.
>>
>> On git plugin, I set Refspec to *refs/changes/*:refs/changes/** and 
>> 'Branches to build' to *$GERRIT_REFSPEC.*
>>
>
>
> Set  Refspec to $GERRIT_REFSPEC, branches to $GERRIT_BRANCH and make sure 
> to use the gerrit trigger strategy under advanced options.
>  
> I guess the doc is just slighty outdated.
>
> Björn
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55a16606-3a2b-48be-b7a3-dba9027d9881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to