You should be able to mount the workspace as an external volume using
persistentVolumeClaim in your podTemplate

On Mon, Feb 26, 2018 at 11:02 PM, Matthew Ceroni <[email protected]>
wrote:

> Is it possible, much like with the docker agent and reuseNode option, to
> share a work space between multiple kubernetes pods?
>
> My use case that I am trying to solve it to utilize the lock/milestone
> functionality to promote artifacts through environments (test, staging,
> prod). The problem is if I use a global agent at the top of my pipeline,
> that POD will stick around until the end user finally proceeds or aborts
> the promotion. I don't really want that as it uses up resources. If I use a
> stage specific agent then I have the problem that the workspace gets
> re-initialized each time.
>
> Thanks 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 [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/d6780c76-cc0c-4f60-90c5-448be26b7d61%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/d6780c76-cc0c-4f60-90c5-448be26b7d61%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6NWHHJpcedePetffpgjui48QHp9sMYRMAVTh-uj%2BS5_wQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to