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.
One answer
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?
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
Comments
JY Hsu
Jun 28 '16, 10:14 a.m.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?
Sridevi Sangaiah
JAZZ DEVELOPER Jul 01 '16, 1:41 a.m.I believe once the Jenkins build is done, the buildResultUUID will be available in the "RTCBuildResultUUID" environment variable.