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

Create repository workspace with one specific component

How to create repository workspace with one specific component?

scm create workspace -s   $STREAM   $REPO_WORKSPACE   

The above command gets all the components from the stream (if multiple components are present).

I am trying to get just one specific component into my repository workspace and I have tried combinations of commands like:

scm create workspace -s   $STREAM   $REPO_WORKSPACE    $COMPONENT


0 votes



One answer

Permanent link
Tim,
You cannot do that in a single operation today. The create workspace command allows to
1) Create a workpace with one default component or
2) Create a workspace with no component or
3)  Create a workspace with a stream as the flow target and add all the components of the stream to the workspace or
4) Create a workspace and add all the components of the snapshot (with snapshot as the base) to the workspace.

To add a single component from a stream:
1) scm create workspace $REPO_WORKSPACE --empty
2) scm workspace add-components $REPO_WORKSPACE $COMPONENT
3) scm workspace change-target $REPO_WORKSPACE $STREAM

Allowing the capability to add one component from a stream would be a good addition to the create worksapce command.

1 vote

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
× 12,019
× 1,202
× 158
× 113
× 87

Question asked: Nov 27 '13, 7:44 p.m.

Question was seen: 8,045 times

Last updated: Dec 16 '13, 1:16 p.m.

Confirmation Cancel Confirm