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 <mark.earl.wa...@gmail.com>
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 <hheidi...@gmail.com> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
>> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> 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 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/CALzHZS2KX%2B4wvN0z3w%3DNWieKfcftx7%2BBFZK96G-f7MLZNtjwyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to