We regularly have issues in our CI when a long running integration test runs in parallel with a smaller job on the same slave. It seems the long running job keeps a lock on something in the gradle cache.
We apply a script from a URL in one of our init scripts. Resulting in the error as seen in this gist.
What went wrong: A problem occurred evaluating script. > Could not open buildscript class cache for script ‘F:\dev\BuildScripts\MyLoggingPlugin.gradle’ (C:\Users\scott.gradle\caches\1.9-rc-3\scripts\MyLoggingPlugin_6mqkjr1dm8ldv061klekqj18ro\DefaultScript\buildscript).
Timeout waiting to lock buildscript class cache for script ‘F:\dev\BuildScripts\MyLoggingPlugin.gradle’ (C:\Users\scott.gradle\caches\1.9-rc-3\scripts\MyLoggingPlugin_6mqkjr1dm8ldv061klekqj18ro\DefaultScript\buildscript). It is currently in use by another Gradle instance.