actions
actions copied to clipboard
Cache cleanup should not run for cancelled or failed jobs
If the Job execution is failed or cancelled, then it is quite possible that some required downloads and assets in the Gradle User Home will be incorrectly flagged as "unused" and removed during cache cleanup.
We should only run cache cleanup in the case where the build successfully runs to completion.