It's all about the answers!

Ask a question

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


Natalia Liaskovski (5711219) | asked Jul 15 '13, 3:55 p.m.
edited Jul 15 '13, 4:17 p.m.
what is the scm command line API to create snapshot on a stream without baselines ?RTC version 4.0.2

One answer



permanent link
Surya Tripathi (65017) | answered Jul 15 '13, 7:15 p.m.
edited Jul 17 '13, 2:33 p.m.
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.



Comments
Natalia Liaskovski commented Jul 16 '13, 6:15 a.m.

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.


1
Tim Mok commented Jul 16 '13, 9:21 a.m.
JAZZ DEVELOPER

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?


Natalia Liaskovski commented Jul 16 '13, 10:06 a.m.

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


1
Geoffrey Clemm commented Jul 16 '13, 2:49 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or to post your answer.