Is git resource shared between containers within a worker?



In my pipeline I have different jobs which take git resource as input.
I would like to know if this git resource in a particular worker is being shared between the containers for every task (so to say cached) executed on that worker or the git repo that this git resource describes is being cloned in every container?

Kind regards,



It isn’t the same directory mounted to every container. i.e. if you modify it in one task those changes won’t be reflected in a later task without use of inputs/outputs.

The caching docs haven’t been filled in yet but based on experience I think what happens is the first time you get the resource on a worker the result of the git clone will be cached on that worker for some period of time. Then if another task requires that resource a copy of the cached clone will be mounted to it.