You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We run a self hosted CI machine using the windows runner. After a run, the cache folder seems to be deleted every time. Especially when a pipeline fails, it would be great to keep this cache for investigation purposes. Is there an option to disable the purge of the cache in case the pipeline does not complete successfully?
Hi Marcel and welcome to the community.
Are you referring to the cache folder that is located in the same directory as the build folder, where the repo is cloned when a step runs? The runner always tries to clean these folders once a build finishes.
Where are you saving the cache? Is it in a directory inside the clone directory? With Windows Runners, we don’t restrict where your cache folder is located, so you can store the cache in any directory of the device outside of the runner directory, and this way the cache will not get cleared.