A shared workspace with multiple ephemeral agents for pipeline parallel code block script possible?

Jenkins setup: Jenkins 2.387.3.5 SDA CI

Is there a way to have a shared workspace to use with multiple ephemeral agents for pipeline parallel code block script ?
Any example solution for that out there ?

Thank you

why you need a shared workspace?

Thx for responding, Marcus.
This is because currently, each of these ephemeral agents have to copy required folders to its own workspace to do its job.
If there’s a workspace label that each of these agents can reference, then there’s no need for copying of folders since all the agents can reference to that single workspace identified by the single common workspace label.
The single common workspace only “git clone” once and ready for use by the agents referring to this workspace by its label.

1 Like

How should Jenkins do this? And if it was able to do this it would also need to copy all files, so there is no big difference to doing it inside the job.

A possible solution might be to use a shared files system via NFS. But setting this up is out of control of Jenkins. You need to make sure that when the vm starts that it mounts the NFS share (that requires root permissions).