Yes, but since container is destroyed after every build by docker plugin I
cannot assign a volume to a specific container.

On Thu, Jul 25, 2019 at 12:12 PM Slide <[email protected]> wrote:

> Isn't that what volumes are for?
>
> On Thu, Jul 25, 2019 at 2:56 AM Matej Drobnič <[email protected]> wrote:
>
>> Hello,
>>
>> I'm wondering if there is a way to dynamically provision jenkins build
>> agents via docker, but have them persist their state (e.g. reuse existing
>> containers whenever possible instead of creating new ones)?
>>
>> Docker plugin <https://wiki.jenkins.io/display/JENKINS/Docker+Plugin>
>> appears to be closest to this, but it always destroys old containers and
>> creates fresh one.
>>
>> Main reason for doing that would be gradle's inability to share download
>> cache between projects <https://github.com/gradle/gradle/issues/851>. So
>> instead of having one global download cache which is not supported by
>> Gradle, every agent would have its own download cache that would be
>> persisted between builds.
>>
>> Thanks.
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/2ce561d6-ab1e-412a-9d80-9a271a1c3d2a%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/2ce561d6-ab1e-412a-9d80-9a271a1c3d2a%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Website: http://earl-of-code.com
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf7vrHUQRM2JKr1dZd0UkiZB7rqNsApWHQS2tLPvLEg_g%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf7vrHUQRM2JKr1dZd0UkiZB7rqNsApWHQS2tLPvLEg_g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAGZH5Qb-guG9-7GHyUHJ1otHeYuw5w8DJ8ds3Daa9tuw50XREw%40mail.gmail.com.

Reply via email to