I’m running a multi-job build process in Jenkins for Java project built with Gradle.
I’m using Gradle 4.2.
All of the Jenkins slaves are connected to a NAS. The user home directory is stored on that NAS so currently when we run several jobs at the same time we get an error that Gradle fails to lock a file in the cache directory.
I would like to take as much advantage of the cache as possible so I will like to know if it is possible to store the dependencies cache in a single directory in the NAS and have all slaves use that one directory.
Is that possible?