One of my builds takes a long time and timed out.
Of course, I am aware that I may increase the time out period, but nevertheless the build failed.
I noticed the cache was not updated at each step of the build: it had to be completely rebuilt by the nex build.
I think you should save the cache even when a build fails on time-out, so that it may be used by the next one.
Robin Shen commented 2 years ago
OneDev mounts a directory to be used as cache (or create symbol link when shell executor is used instead of docker executor), and does not have any special "save cache" or "upload cache" action. Even if build is timed out or failed, the file written to cache will still be available for subsequent builds.
One of my builds takes a long time and timed out. Of course, I am aware that I may increase the time out period, but nevertheless the build failed. I noticed the cache was not updated at each step of the build: it had to be completely rebuilt by the nex build.
I think you should save the cache even when a build fails on time-out, so that it may be used by the next one.