we have several multi-project builds which are executed on a Jenkins CI server. Several weeks ago we updated our outdated Gradle 1.1 to 1.11. Since then, every 20th build or so fails because of > Execution failed for task ‘…:test’. > Timeout after waiting 120,0 seconds for Gradle Worker nnn (STARTED, running: true) to connect.
and additionally specifying ‘–refresh-dependencies’.
We had problems on CI when using daemon=true, but these are gone.
The only problems we currently have are hardware failures (reboot). If these are happening during a gradle build we observe test and compile failures afterwards (probably some cache corruption).
I immediately tried the proposed properties, but it didn’t help.
However, our admin noted that a Windows server should be rebooted from time to time (it had already run for 8 months). That we did and the problem appeared only once since then.
We reboot our build machines every night and clean all caches (including gradle’s) during this maintenance task (reboot was needed due to problems with old Visual Studio Versions getting slower and slower)…but I don’t get why this makes a difference when the gradle daemon is disabled.