Jenkins + Kubernetes - Cache .m2 for jobs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins + Kubernetes - Cache .m2 for jobs

Enguerrand A
Hello everyone,

I use the Kubernetes plugin for Jenkins to launch all Jenkins jobs in a Kubernetes cluster. For better performance, I want to use a persistent disk for the cache of different job Maven with insulation of it, ie a disk space per job (to separate the cache)

Do you have ideas for automatic solutions with the Kubernetes plugin to have cache on the .m2 (or another type of cache) with a different disk by jobs ?

Thank you in advance !

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins + Kubernetes - Cache .m2 for jobs

Carlos Sanchez
you can mount a PV or PVC but depending on what backend you use that will prevent concurrent executions

On Tue, Jul 10, 2018 at 3:05 PM Enguerrand A <[hidden email]> wrote:
Hello everyone,

I use the Kubernetes plugin for Jenkins to launch all Jenkins jobs in a Kubernetes cluster. For better performance, I want to use a persistent disk for the cache of different job Maven with insulation of it, ie a disk space per job (to separate the cache)

Do you have ideas for automatic solutions with the Kubernetes plugin to have cache on the .m2 (or another type of cache) with a different disk by jobs ?

Thank you in advance !

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com.
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6P%3DrDHFv1tJ1XFw1sHW4X0uVW4QX5DpARqNxQ_wUJ%3DYaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins + Kubernetes - Cache .m2 for jobs

Enguerrand A
The problem is that I would like to automate the installation of the PV or PVC without needing to specify it in the Jenkinsfile but at least I can automate the creation of PVC or PV for each job to avoid manual operation.

I saw that automatically a PVC or PV could be mounted for the workspace Jenkins, but it raises concerns if 2 build on the same job runs on the same shared workspace (build can inflict another by removing files for example)

Le mardi 10 juillet 2018 15:35:17 UTC+2, Carlos Sanchez a écrit :
you can mount a PV or PVC but depending on what backend you use that will prevent concurrent executions

On Tue, Jul 10, 2018 at 3:05 PM Enguerrand A <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="smVbth00BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">allamel.e...@thalesaleniaspace.com> wrote:
Hello everyone,

I use the Kubernetes plugin for Jenkins to launch all Jenkins jobs in a Kubernetes cluster. For better performance, I want to use a persistent disk for the cache of different job Maven with insulation of it, ie a disk space per job (to separate the cache)

Do you have ideas for automatic solutions with the Kubernetes plugin to have cache on the .m2 (or another type of cache) with a different disk by jobs ?

Thank you in advance !

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="smVbth00BwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/de71d26c-115e-4679-af8e-0151fbb3b8c9%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/cb81d993-885d-460d-b006-22b474a813e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.