You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by "Creager, Greg" <gr...@hp.com> on 2015/12/04 23:02:04 UTC

ivy cache issue

I have been searching the net for info on this but have not found anything new.

We have a single Jenkins machine that runs all our CI builds, many times we have 3-4 build that run at the exact same time. Periodically (not always) we get an error where it cannot find the specified file in the cache (see below), yet the cached file is there and the timestamp shows it was there 1 minute before the error.

So if the file is there, why is the build saying it is not?

In reading info from others I think we are setup correctly with the cache to work with parallel builds, having the resolution cache be isolated in each build and sharing the artifact cache and using artifact locking (we don't specify the artifact cache, it just assumes default, but I was not sure if the artifact-lock would pertain to that since it is not specified?
<caches
default="no-memory-cache"
               lockStrategy="artifact-lock"
               resolutionCacheDir="${basedir}/.ivy2/resolutionCache">

               <cache name="no-memory-cache" memorySize="0" />
</caches>

Any help would be much appreciated.



BUILD FAILED - at 12/4/15 1:17 PM
D:\workspace\Jenkins\jobs\rip_services-trunk\workspace\build.xml:123: impossible to ivy retrieve: java.lang.RuntimeException: problem during retrieve of hp#rip_services: java.io.FileNotFoundException: C:\Users\$dfesrvc\.ivy2\cache\hp\hpapic\3.0\jars\hpapic-test-3.0.0.37517.jar (The system cannot find the file specified)
        at org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEngine.java:249)
        at org.apache.ivy.Ivy.retrieve(Ivy.java:561)
        at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:98)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.FileNotFoundException: C:\Users\$dfesrvc\.ivy2\cache\hp\hpapic\3.0\jars\hpapic-test-3.0.0.37517.jar (The system cannot find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at org.apache.ivy.util.FileUtil.copy(FileUtil.java:221)
        at org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEngine.java:170)
        ... 19 more