Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How do I create a snapshot in a stream from a Jenkins build?

My Jenkins job only creates baseline and snapshots in workspace, not stream, even after I tell it to do so in post-build deliver. How do I make my Jenkins job create those in the stream, or deliver to the stream after the build automatically? I can take the always create baseline and snapshot before build approach. The problem is I don't even know how to do it.

0 votes

Comments

 One other related question is that in Jenkins build triggered from Jenkins, I don't get buildResultUUID. However, most of the build system toolkit commands needs that. How do I get the buildResultUUID while also trigger build from Jenkins?

I believe once the Jenkins build is done, the buildResultUUID will be available in the "RTCBuildResultUUID" environment variable.



One answer

Permanent link
You can associate the snapshot to a stream, by changing the "owner" of the snapshot to be that stream.   Would that achieve the result you are looking for?

0 votes

Comments

 But that has to be done manually. Is it possible to do it automatically?

You can use scm CLI in your build scripts to promote the snapshots to the stream.

 That will require buildResultUIID, but I don't see it or the RTCbuildResultUUID you mentioned in another comment in my Jenkins job.

If you are using RTC SCM in a pipeline job, having a look at the discussion in 370979: Environment variables for snapshot, build result UUID are null if env object is accessed before running teamconcert checkout step might help.

Thanks,
Sridevi

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 151

Question asked: Jun 28 '16, 9:44 a.m.

Question was seen: 3,675 times

Last updated: Jul 05 '16, 6:14 a.m.

Confirmation Cancel Confirm