Builds are failing on RTC v3.0.1.5 after upgrade
Accepted answer
I've seen some other clients run into this after a 2.x upgrade. I believe this is related to the .projects of 2 components colliding in the same root directory of the build. There is a boolean value you can change to have each component create its own directory.
the local filesystem destination. -->
userId="${rtc.userId}"
password="${rtc.password}"
workspaceName="${rtc.workspaceName}"
destination="${workspace.dir}"
buildResultUUID="${buildResultUUID}"
createFoldersForComponents="true"
verbose="true" />
buildRootDirectory | +-- BuildTarget01 | | | +-- sourcedir0101 | | | +-- sourcedir0102 | | | +-- ... | +-- BuildTarget02 | | | +-- sourcedir0201 | | | +-- sourcedir0202 | | | +-- ... | +-- ... Directory structure with attribute set to "true" will look like: buildRootDirectory | +-- BuildTarget01 | | | +-- BuildTarget01 | | | +-- sourcedir0101 | | | +-- sourcedir0102 | | | +-- ... | +-- BuildTarget02 | | | +-- BuildTarget02 | | | +-- sourcedir0201 | | | +-- sourcedir0202 | | | +-- ... | +-- ...
3 other answers
Loading the directories in the file system would overwrite/remove existing directories.rather suggests that the SCM load has an issue with the repository workspace. This error message looks similar like in the Eclipse UI if you want to load a repo workspace into a location where another repo workspace is already loaded and you would get collisions. If you use the same load location for several builds in independent JBE's this could also happen.
Where do I set that value? I tried grep'ing for teamfetch and createFolders on both my RTC server and build engine and don't see them anywhere. Is that on the Ant build.xml? We're using Maven. Thanks.
Enrique
Comments
Nevermind, just saw the create folders for components checkbox.
Thanks, Josh. The create folders for components did the trick and I was able to load the files. However, by creating folders for every component, it also breaks all my builds and there are close to 50 build projects that will be affected.
Enrique
Hi Enrique, my example was from an Ant build.xml. The 2.x JBE seems to ignore this condition during load which to me seems like a potential bug since it allows for the collision to happen.
Thanks again for the solution.
Comments
That will give you a successful build for this scenario but removing that file will make the project non-modifiable in the eclipse client
You don't have to delete the .projects. You can move the .project and related folder (e.g. src) into a new folder under the same component and check it in. Then that folder will become the eclipse project. That would be less churn and would probably be better for your build process.
1 vote
Comments
Enrique Gaona
Apr 21 '13, 7:21 p.m.UPDATE: This is similar to this to this forum topic, https://jazz.net/forum/questions/22183/error-comibmteamfilesystemclient-code0