It's all about the answers!

Ask a question

How to avoid the build error when fetching a file which is already loaded


Christian Giesa (13137) | asked Jan 19 '16, 11:26 a.m.
We got following error when running a build on Jenkins. In this example the file test.clf has been moved from the "project/Folder/" to the root folder "project/" of a component by a user in the specific stream.
The build definition is using a parent load rule file.
So, we know that the error appears because there is already a file named (perhaps with the same UUID?) like test.clf in another folder. But why does the file still exists in this folder? I thought every time when a build is running Jenkins will remove all the files in the Jenkins sandbox and fetch all the files from the given repository workspace again.
The workaround to solve this problem is to delete the jenkins workspace, but we don't know how to avoid this error in future.

RTC Checkout: Fetching files to fetch destination "O:\Jenkins\workspace\buildname\project\..."
Fatal: RTC : checkout failure: Failed to load due to 1 invalid requests
Failed to load due to 1 invali requests
Failed to load into O:/Jenkins/workspace/buildname/project
Already loaded at O:/Jenkins/workspace/buildname/project/Folder/test.clf

com.ibm.team.build.internal.scm.SourceControlUtility$3: Status ERROR: com.ibm.team.filesystem.client code=4
Failed to load due to 1 invalid requests null children=[Status ERROR: com.ibm.team.filesystem.client code=0
Failed to load into O:/Jenkins/workspace/buildname/project null children=[Status ERROR: com.ibm.team.filesystem.client code=0
Already loaded at O:/Jenkins/workspace/buildname/project/Folder/test.clf null]]
   at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:693)
   at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:436)
   at com.ibm.team.build.internal.hjplugin.rtc.RTCFade.checkout(RTCFade.java:390)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invole(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:115)
...

Thank you in advance for any given hints

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.