what is the scm command line API to create snapshot on a stream without baselines ?
One answer
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
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