some of the directories under stash-home/cache/scm/ can grow very large. Can some of the old cache files be removed from this directory to save disk space? Is it only the last cache file that we have to keep?
Hi Vivian,
The stash-home/cache/scm directories contain the cache files for the scm-cache plugin, which caches clone operations. Each subdirectory contains files for a particular repository (the directory name is the repository ID). There can be multiple files in each repository directory; it all depends on what refs were included in the clone. The cache files for a repository are cleaned up:
There's also a built-in protection that prevents the SCM cache from completely filling the disk. The SCM cache will stop creating new cache files if the free space on the disk drops below a threshold (1Gb by default but configurable).
See https://confluence.atlassian.com/display/STASH/Scaling+Stash+for+Continuous+Integration+performancefor more details.
Hope this helps
Cheers,
Michael
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.