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

Check for workspace or stream using scm commandline

Hello,

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

Thank you.

0 votes

Comments

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

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

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

1 vote

Comments

From the online help:

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

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

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
× 10,927

Question asked: Jan 24 '17, 2:03 a.m.

Question was seen: 1,484 times

Last updated: Jan 24 '17, 4:28 a.m.

Confirmation Cancel Confirm