It's all about the answers!

Ask a question

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


Jim Hayko (653) | asked Apr 27 '09, 4:44 p.m.
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

One answer



permanent link
Jean-Michel Lemieux (2.5k11) | answered Apr 30 '09, 9:48 a.m.
JAZZ DEVELOPER
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

Your answer


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.