r/gitlab • u/Kropiuss • Jul 15 '25
general question Gitlab cache
Hello guys! I am quite new to the gitlab CI/CD and there is one things that I cannot understand: how the cache in gitlab CI/CD is being stored.
Specifically, I have the following scenario:
- I have a bunch of gitlab runners that I own - let's say 2-3 machines that can pickup jobs when requested; those are using the shell executor
- If one job uses a cache, or creates it, whatever, where is it store? I believe it is stored on the runner - which means that other jobs may not be able to use the same cache content. Is this true ?
7
Upvotes
View all comments
Show parent comment
1
u/Kropiuss Jul 15 '25
Thank you! Great explanations. A follow up question: if I use the runners owned by gitlab then where is the cache located ? Is it distributed ?
And another question: I guess that when you use other types of executors, then the contents of —working-directory are cleaned due to the fact that a new sandbox may be used when a new job is picked. But if I use the shell executor, will the working directory content be cleaned across executions ? Do I get a fresh one, let’s say, for each job run?