How do I create a snapshot in a stream from a Jenkins build?
![]()
JY Hsu (11●1●1)
| asked Jun 28 '16, 9:44 a.m.
converted to question Jun 28 '16, 10:09 a.m. by Geoffrey Clemm (30.1k●3●30●35)
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
![]()
Geoffrey Clemm (30.1k●3●30●35)
| answered Jun 28 '16, 10:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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.
|
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
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.