parallel gradle builds running on jenkins causing issue with gradle global cache

Hi,

This is deleting the local build cache but also all kinds of other Gradle caches which are used during the build:

Why do you run this as part of clean? It should not be necessary and will break you build for sure. What happens if you don’t remove /var/lib/jenkins/.gradle/caches.

Cheers,
Stefan