Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Unable to perform Personal Build when triggered from Jenkins Job

 Hi
I have setup a Jenkins Job where I am passing the below properties in a Invoke Ant Build Step
-DworkspaceName="$WORKSPACE_NAME" -DpersonalBuild=1

The WORKSPACE_NAME is accepted as parameters from the user, where he provides his Workspace
In the RTC Personal Build definition I have Created a new workspace and have provided the working directory. When I trigger a Build I get the below error:

[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/jobs/PMQ_2_5_Personal_Build/workspace
RTC : checkout...
RTC Checkout : Source control setup
RTC Checkout : Fetching files to fetch destination "/var/lib/jenkins/jobs/PMQ_2_5_Personal_Build/workspace" ...
FATAL: RTC : checkout failure: Loading the directories in the file system would overwrite/remove existing directories.
Loading the directories in the file system would overwrite/remove existing directories.
/src (requested to be loaded from both component PMQ_Foundation and PMQ_ESB)
/.project (requested to be loaded from both component PMQ_ESB and PMQ_MasterDataMgmt)

com.ibm.team.build.internal.scm.SourceControlUtility$3: Status WARNING: com.ibm.team.filesystem.client code=2 Loading the directories in the file system would overwrite/remove existing directories. null children=[Status WARNING: com.ibm.team.filesystem.client code=0 /src (requested to be loaded from both component PMQ_Foundation and PMQ_ESB) null Status WARNING: com.ibm.team.filesystem.client code=0 /.project (requested to be loaded from both component PMQ_ESB and PMQ_MasterDataMgmt) null]
	at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:685)
	at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:436)
	at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:115)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:166)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:32)
	at hudson.FilePath.act(FilePath.java:919)
	at hudson.FilePath.act(FilePath.java:897)
	at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1082)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1258)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
	at hudson.model.Run.execute(Run.java:1759)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Contains : 0 /src (requested to be loaded from both component PMQ_Foundation and PMQ_ESB)
Contains : 1 /.project (requested to be loaded from both component PMQ_ESB and PMQ_MasterDataMgmt)
FATAL: RTC : checkout failure: RTC : checkout failure: Loading the directories in the file system would overwrite/remove existing directories.
Loading the directories in the file system would overwrite/remove existing directories.
/src (requested to be loaded from both component PMQ_Foundation and PMQ_ESB)
/.project (requested to be loaded from both component PMQ_ESB and PMQ_MasterDataMgmt)

hudson.AbortException: RTC : checkout failure: Loading the directories in the file system would overwrite/remove existing directories.
Loading the directories in the file system would overwrite/remove existing directories.
/src (requested to be loaded from both component PMQ_Foundation and PMQ_ESB)
/.project (requested to be loaded from both component PMQ_ESB and PMQ_MasterDataMgmt)

	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:199)
	at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:32)
	at hudson.FilePath.act(FilePath.java:919)
	at hudson.FilePath.act(FilePath.java:897)
	at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:1082)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1258)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
	at hudson.model.Run.execute(Run.java:1759)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
ERROR: RTC : checkout failure: RTC : checkout failure: Loading the directories in the file system would overwrite/remove existing directories.
Loading the directories in the file system would overwrite/remove existing directories.
/src (requested to be loaded from both component PMQ_Foundation and PMQ_ESB)
/.project (requested to be loaded from both component PMQ_ESB and PMQ_MasterDataMgmt)

Finished: FAILURE
	

0 votes



One answer

Permanent link
The error says that the folder where you load the data already exists and loading the data would overwrite it. I would consider using a unique download folder (e.g. based on the build ID) or deleting the folder before loading.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Dec 01 '14, 12:28 p.m.

Question was seen: 6,467 times

Last updated: Dec 02 '14, 3:01 a.m.

Confirmation Cancel Confirm