thanks for the tips i had the errors you're talking about using Jenkins when multiple gradle-based builds were launch simultaneously, i'll try and let you know
Olivier. 2011/6/28 Adam Murdoch <[email protected]> > > On 28/06/2011, at 6:04 AM, David Abadir wrote: > > For the second time today I got this error (only on the CI server, not my > local machine):**** > org.gradle.api.UncheckedIOException: Could not add entry '1958' to cache > 'C:\Documents and > Settings\cfx_is_intgn\.gradle\caches\1.0-milestone-3\fileSnapshots\cache.bin'. > **** > ** ** > After the first time I deleted the folder and the CI server successfully > ran the tests for a few more hours.**** > ** ** > After it happened a second time I tried adding the following to > build.gradle:**** > clean.doFirst {**** > *def* cache="${System.properties['user.home']}\\.gradle\\caches"*** > * > delete(dir: cache, failonerror:*true*)**** > System.out.println(file(cache).exists())**** > }**** > ** ** > But it hasn’t yet deleted the folder. This step continues to fail with:** > ** > Cause: java.io.IOException: The filename, directory name, or volume label > syntax is incorrect**** > ** ** > ** ** > Ideas on how to overcome either issue? > > > Are you running multiple CI builds on the same machine? > > There are some concurrency problems in the cache implementations, so that > they can sometimes break if you run multiple builds at the same time. A work > around is to run each CI build with the -g option, to give each build a > separate cache directory. > > > -- > Adam Murdoch > Gradle Co-founder > http://www.gradle.org > VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting > http://www.gradleware.com > >
