Gradle cache - is it a good idea to periodically “clean” the cache on Jenkins Servers?
Periodically, we have artifacts that get deleted from Artifactory that our build scripts depend on (other teams remove). The Jenkins servers continue to work as the artifacts are cached locally.
My question is three fold: 1) would gradle ever detect that these artifacts are no longer available on artifactory? 2) is it good practice to periodically delete the gradle cache so we don’t use up so much disk space for old artifacts + our build system is in sync with our repo? 3) if #2 what is the best way to have Jenkins clean the cache? (rm -rf?)