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
|
One answer
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.
1
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.
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
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.