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

what is the scm command line API to create snapshot on a stream without baselines ?

what is the scm command line API to create snapshot on a stream without baselines ?RTC version 4.0.2

0 votes



One answer

Permanent link
You can use lcm create snapshot command to create snapshot of a stream -
For example -
lscm  create snapshot -r https://<server>:9443/jazz -u <userid> -P <password> -n "<Snapshot Name>"  "<Stream Name>"
This command will create snapshot. Baselines are created only if necessary. You can force creation of baselines by using option "-f". I do not believe you can avoid creating baselines though.
The reason baselines are automatically created is that the current configuration of components in your stream may not have already been captured in a baseline.

The Eclipse UI option you are referring to is actually same as "-f" option in CLI, which is to force creation of baseline.


2 votes

Comments

We have been using the command to create snapshots, but the issue is that command creates baselines automatically.

From the UI client baseline creation is optional, and this is what we need - snapshot, but no baselines.

If no baseline exists that describes the current component configuration then a baseline is created. There is no avoiding this because a snapshot by definition is a collection of baselines. Is this what you are encountering?

1 vote

there are baselines all across the stream. The stream is snapshot and baselined on a weekly basis, but we need to create automatic nightly build snapshots of the stream without baselines. Obviously changes are committed every day, hence there will be change sets above latest baselines, but we don't want to baseline on a daily basis.

UI has that option, but scm command line API does not seem to

Please see Tim's comment above.   A snapshot is by definition a collection of baselines.  The only way a snapshot can capture the state of a given component is by selecting a baseline that captures the state of that component.   So if there have been changes made to a component in a stream, the only way that a snapshot can capture the current state of that stream is by first creating a new baseline of that component, and using that new baseline in the snapshot it is creating.

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,020

Question asked: Jul 15 '13, 3:55 p.m.

Question was seen: 5,382 times

Last updated: Jul 17 '13, 2:33 p.m.

Confirmation Cancel Confirm