Deliver a snapshot from one stream to another
We have staging and production streams, where we want to only deliver selected builds from staging to production, depending on if they were tested successfully or not.
Is there a way to deliver a particular snapshot in one stream (staging) to another (production)?
Something like
scm deliver -s "staging" -t "production" -snapshot "<uuid>" I looked at the "deliver" command, it supports delivering a baseline, but not a snapshot. The issue is that my stream has 25 components in it, so delivering a snapshot makes more sense here.
Thank you.
|
One answer
Geoffrey Clemm (30.1k●3●30●35)
| answered Oct 13 '19, 3:26 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I believe the best approach to deliver a configuration that spans multiple components is to not use snapshots at all, but rather use hierarchical components. This allows you to use the normal deliver/accept operations. For details, see: |
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.
Comments
I think I am getting forward with the replace-components command.
As far as I know, snapshots can not be delivered. Snapshots are owned by a stream and track the baselines for the components in the stream at the time the snapshot is created. If needed or forced new baselines are created.
I have not had a lot of time, but I was not able to find anything promising yet. It might be, that there is nothing. One option would be to recreate the configuration in the stream and take a new snapshot. Another option would be to look into the Plain Java Client Libraries this should be doable using the API. I would also think that an enhancement request could be created, if you do not find anything else.