Do we have a command line to Lock/unlock the stream in RTC 6.0.2?
shibi krishnamoorthy (11●1●1)
| asked Nov 21 '16, 5:28 a.m.
retagged Oct 06 '17, 4:07 p.m. by Ken Tessier (841●1●7) Need to lock stream at the start of build and unlock at end of build.
|
Accepted answer
David Lafreniere (4.8k●7)
| answered Oct 05 '17, 5:47 p.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Oct 05 '17, 5:47 p.m. There is no Ant Task available to lock a stream, however there is an SCM CLI (Command Line Interface) command to lock a stream/component (added in RTC 6.0.2). See the 'scm set lock' command.
Michael Valenta selected this answer as the correct answer
|
One other answer
In RTC the lock is created on file level. If you need to lock an entire stream to prevent users to deliver the change set the the stream, you need to use "Restrict Change Set Delivery to Components in a Stream" pre-condition. However it's not possible to set the pre-condition using SCM command line or Ant task.
I doubt why you need to lock a stream during a build? The build is happened on build workspace, and stream is easy to roll back to the build status using the snapshot created on build workspace.
Comments
Ralph Schoon
commented Nov 22 '16, 1:56 a.m.
| edited Nov 22 '16, 1:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Apparently in 6.0.2 locking on stream and component level was added. https://jazz.net/downloads/rational-team-concert/releases/6.0.2?p=news
I was however not able to find a reference to do that with the scm command line. I assume you would have to play with the API if you wanted to automate it.
Stephane Couillaud
commented Sep 12 '17, 2:32 p.m.
Hi Ralph,
Do you know if there has been any advances since?
Thanks,
-Steph
|
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.