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

Do we have a command line to Lock/unlock the stream in RTC 6.0.2?

Need to lock stream at the start of build and unlock at end of build.

is there is any ANT task/RTC command line to lock/unlock streams.

It would be good if we have an option in the build definition to lock the stream while starting the build.(similar to accept changes in repo before build) I understand that build definition never consider the stream and also has impact on personal build. Guess we can handle this in build definition.(just a suggestion)

0 votes


Accepted answer

Permanent link

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.

See:
-SCM Command Line Client 'set lock' command: https://www.ibm.com/support/knowledgecenter/SSCP65_6.0.4/com.ibm.team.scm.doc/topics/set_lock.html
-New & Noteworthy Mention of Stream/Component Locking: https://jazz.net/downloads/rational-team-concert/releases/6.0.2?p=newsDetails#stream-locking
-Stream/Component Locking Demo Video: https://www.youtube.com/watch?v=b8QwzwUF2ZY

Michael Valenta selected this answer as the correct answer

0 votes


One other answer

Permanent link
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.

0 votes

Comments

 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.

 Hi Ralph,


Do you know if there has been any advances since?
Thanks,

-Steph

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
× 6,121
× 1,381
× 79
× 67

Question asked: Nov 21 '16, 5:28 a.m.

Question was seen: 4,396 times

Last updated: Oct 06 '17, 4:07 p.m.

Confirmation Cancel Confirm