We recently rolled out the latest release of application and are now maintaining three gradle releases for each of about 300 components and therefore running about 1000 jobs in our Jenkins setup. Since we added the Jenkins jobs for the new release, we are seeing many of the following errors and jobs are failing. This at a critical time in our delivery process.
We do not use dynamic versions (or transitive dependencies) , so all cached jar files are individually versioned. Consequently, I am not understanding these locks that suddenly began causing issues as the referenced jar contents should be the same for all jobs (regardless of SCM root, branch, release, etc.)
How do we combat these issues?
Timeout waiting to lock jars (/tmpfs/jenkins/.gradle/caches/jars-2). It is currently in use by another Gradle instance.
Owner PID: 11388
Our PID: 29369
Lock file: /tmpfs/jenkins/.gradle/caches/jars-2/jars-2.lock