thank you for answering Robert.
Yes, I use: Strategy for choosing what to build -> Gerrit Trigger
and I  set the ref spec to $GERRIT_REFSPEC, too.
I use these setting while using jenkins on ubuntu  works fine.
that's why i'm so confused why can't it run on windows...

Then I came up with another idea, that is to use jenkins on ubuntu, which 
works fine, and to make my code build on windows(another computer)
so what plugin should I use? *SSH Plugin?*
but according to jenkins wiki 
<https://wiki.jenkins-ci.org/display/JENKINS/SSH+plugin>, it seems can be 
use on linux system only?

thank you guys so much for answering me!!

Robert Sandell於 2016年3月31日星期四 UTC+8下午10時04分12秒寫道:
>
> This question belongs on the users list, so It's in the cc.
>
> It's a bit hard to know what could be configured wrong without more info 
> (and I'm not a windows user, so I don't know of any particulars on that OS) 
> but;
>
> Have you configured Gerrit Trigger as the build chooser for the git 
> checkout? i.e. Additional Behaviours -> Strategy for choosing what to build 
> -> Gerrit Trigger
>
> After that configuring the branch is only nessesary to make the git plugin 
> happy with something and can be used for for example merging to that branch 
> before building.
>
> Have you set the ref spec to $GERRIT_REFSPEC, it shouldn't be needed on 
> newer versions of the plugin but just in case to make sure that you get the 
> refs you should.
>
> If you are using a replication server setup for Gerrit it might be that 
> the ref hasn't been replicated yet to the slave that Jenkins is using when 
> the build starts. You then either need to set the quiet period a bit higher 
> or configure the job to wait for replication.
>
> /Bobby
>
> On Thu, Mar 31, 2016 at 3:36 PM, Mark Waite <[email protected] 
> <javascript:>> wrote:
>
>> You can configure a slave on Windows that connects to the Jenkins server 
>> on Ubuntu.  It works quite well.
>>
>> I would guess that GERRIT_BRANCH probably evaluated to that SHA1 
>> (b8494...)
>>
>> Mark Waite
>>
>> On Thu, Mar 31, 2016 at 7:33 AM Heidi Tseng <[email protected] 
>> <javascript:>> wrote:
>>
>>> thanks so much for answering, Mark. 
>>> In my case, actally I don't know what  
>>> b8494ff5d3176890e85f4450de84e7031b909130 
>>> is... 
>>> In the job config, I just put $GERRIT_BRANCH in "Branches to build"...
>>>
>>> And I also want to ask that can I use jenkins server which is installed 
>>> on ubuntu and run jobs on the other computer(win7) ?
>>> because my project can only run on windows.
>>> thank you!!
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Jenkins Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-dev/9f0cb029-0cdc-4591-8ac4-f6cb5456963e%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jenkinsci-dev/9f0cb029-0cdc-4591-8ac4-f6cb5456963e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Jenkins Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtFmArLH1_QfwNksqQaO4CqAcnUCHAagMGG%2BGeC-rZL9JQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtFmArLH1_QfwNksqQaO4CqAcnUCHAagMGG%2BGeC-rZL9JQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Robert Sandell
> *Software Engineer*
> *CloudBees Inc.*
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/5d69069e-8e8a-4f88-8a99-87d446b8dcf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to