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

Using SCM command-line tools as part of an RTC build

We have an automated build that has the following characteristics:
1 - we use the integrated scheduling to schedule an automated build;
2 - we accept some inputs from a 3rd party source, that we want to automatically deliver into SCM as part of the build procedure.

I have found references, and have manually executed an SCM checkin and SCM deliver operation from the command line
(See https://jazz.net/forums/viewtopic.php?t=2482&highlight=ant+task+checkin+deliver)

Where it implies that "You should be able to use the command line client to check-in / deliver the artifacts during the build."

I access the scm command line using an Ant "exec" task.

However, I keep getting the following error on both our build server and locally if I try to run the Ant target directly from RTC:

Could not initialize data area:
Another RCP application is running in this local workspace. File locked at file: C:\_workspace

This seems to imply that I cannot call "scm" to do work while either the build server or my local RTC are running.

Has anybody successfully invoked (via "ant exec") "scm" from within an automated build are directly from withing RTC? Would you be willing to share your technique?

Thanks in advance

0 votes



One answer

Permanent link
What RTC version are you using?

You can call scm.exe from a build script, that shouldn't be a problem. But when either the RTC client or CLI is operating on a file area it is locked to avoid concurrency problems (eg, modifying/deleting metadata in parallel).

Your scenario should work. We are going to publish an article on this shortly, you can track the progress in

https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/80767

Jean-Michel

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: Apr 27 '09, 4:44 p.m.

Question was seen: 5,481 times

Last updated: Apr 27 '09, 4:44 p.m.

Confirmation Cancel Confirm