Another alternative is to build a slave image with a bare copy of the git
repository, then use that bare copy as a reference repository in the job
definition (see the "Additional Behaviours" section of the git section of
the job configuration).  The reference repository reduces the data transfer
by pointing to the bare repo and only pulling new changes.

Mark Waite

On Fri, Apr 24, 2015 at 10:59 AM Nigel Magnay <nigel.mag...@gmail.com>
wrote:

> Build a slave image with a copy of the git repository and any known
> artifacts within it. Then the build will only be fetching the diffs.
>
>
> On Fri, Apr 24, 2015 at 4:18 PM, krishna kunapuli <kunapul...@gmail.com>
> wrote:
>
>> Hi,
>>  I was able to setup Jenkins running in a docker container and configure
>> plug-in to kick off builds on slaves. How ever, each time a job is run
>> jenkins slave container is trying to clone the entire git repository,
>> downloading all the artifacts for the project. In my case it take
>> 15minutes. This is least efficient. How do I re-use a slave workspace?
>>
>> Thanks,
>> K
>>
>> --
>> 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/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/d452c5d9-0cbd-43ce-af5b-62e9b0edfb36%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 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/CAPYP83TO6vS%3DP%3DbK_oTW5fkCBvbz-uS3HBPoPYu6HCVaOAoPWQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPYP83TO6vS%3DP%3DbK_oTW5fkCBvbz-uS3HBPoPYu6HCVaOAoPWQ%40mail.gmail.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 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/CAO49JtE4ZRt-od6-GzR-%2BwAFbMxLguaChZMQE3TNrQTB%2Bvdqqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to