Caching a folder without using built in gitlab cache system

runner
#1

I dont want to use the gitlab runner cache for some reasons. Can I just cache my data to the parent folder of the job?

For example right now I’m doing this at the end of job in gitlab ci to move the build folder in the parrent folder of the job.

mv myfolder /builds/root/

I tested this way and it works. However I want to know if there is a downside for this. For example maybe the gitlab runner clear this folder by a predefined cronjob or some other means that im not aware of.

0 Likes