It's all about the answers!

Ask a question

Promote the snapshot from workspace to a stream


Hehui Liu (7052830) | asked May 07 '12, 1:31 a.m.
Does there any way to automatically promote the snapshot generating during build in the build repository workspace to a stream?

4 answers



permanent link
Ralph Schoon (63.4k33646) | answered May 07 '12, 6:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

the advanced search https://jazz.net/search_results.jsp?q=promote+snapshot#page=0&type=&q=promote%2Bsnapshot

comes up with several discussions from the past. In https://jazz.net/forums/viewtopic.php?t=17552 we discussed using the SCM commandline http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.scm.doc/topics/r_scm_cli_snapshot_promote.html
that was introduced in 3.x. There is no ANT task available I am aware off.

The question I have is, why would you want to do that? Assuming you have one build workspace per build definition, you could keep the snapshots there and manually promote only the important ones to the stream. instead of having snapshots for every build on the stream you would have only the important ones.

permanent link
Hehui Liu (7052830) | answered May 07 '12, 7:47 p.m.
Ralph, thanks a lot!
Here we want to promote the snapshot automatically just for the integration stream, and we just want to make sure every version of the build could be roll back from the stream, since the build repository only gives permission to the SCM configuration admin.

permanent link
Ralph Schoon (63.4k33646) | answered May 08 '12, 2:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Hehui,

ok, makes sense. Thanks for the clarification. I would go with the SCM commandline. You should be able to call it in the build script. The snapshot should have been created after the accept, so I don't see why you could not promote it.

permanent link
David Lafreniere (4.8k7) | answered May 14 '12, 12:58 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Does there any way to automatically promote the snapshot generating during build in the build repository workspace to a stream?


This isn't exactly what you are requesting, but it's similar, so I'll mention it here:

In RTC 4.0, if you are using the 'Post-build Deliver" option in a build definition, there is a new section in the UI called "Snapshot Owner". Using the options in this section, the build can now automatically set the deliver target as the owner of the snapshot created during the Jazz SCM pre-build phase. This makes sense when you are delivering 'all' component changes to a "green" stream; You would then want the snapshot to be owned by that stream so it's easier to find.

Your answer


Register or 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.