It's all about the answers!

Ask a question

Check for workspace or stream using scm commandline


Jyotsna Prasad (19120) | asked Jan 24 '17, 2:03 a.m.

Hello,

Can anyone please tell as how to check whether the user input url is of stream or workspace using scm commandline?

Thank you.


Comments
Ralph Schoon commented Jan 24 '17, 2:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

What is a user input URL and how is it related to RTC SCM?


Jyotsna Prasad commented Jan 24 '17, 3:12 a.m.

Hi Ralph, the URL is Stream/Workspace URL which is of this form https://XXXXX/ccm/resource/xxxxxxx/xxxx.scm.Workspace/xxxx.....for both Stream & Workspace the form is this only...How to recognise if it is of Stream or Workspace using scm commandline

Accepted answer


permanent link
Shashikant Padur (4.2k27) | answered Jan 24 '17, 3:33 a.m.
JAZZ DEVELOPER

scm command line cannot parse the url but you could you parse out the item id from the url and run 'scm show attriubtes -r <repo_url> -w <workspace_or_stream_item_id> -j

The output will be in json format and it will have a key called "type". For workspace it will be: "type": "WORKSPACE" and for stream it will be "type": "STREAM".

Jyotsna Prasad selected this answer as the correct answer

Comments
Ralph Schoon commented Jan 24 '17, 3:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

From the online help:

use its name[@repo], alias, or UUID[@repo].


Jyotsna Prasad commented Jan 24 '17, 4:28 a.m.

Yes I have found the same, thank you for the reply ! :)

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.