It's all about the answers!

Ask a question

How to customize the snapshot name created by automated build?


Qunfeng Wang (421710) | asked May 09 '13, 1:09 a.m.
edited May 09 '13, 5:13 p.m. by Spencer Murata (2.3k115971)
Both my source code and build are managed by RTC. I find a snapshot will be created automatically with each build. It has a name like MyBuildDefinition_20130430-0852. The name makes little sense. I'd like to customize it to MyBuildDefinition_1.0.0.123. How can that be done in RTC?

Accepted answer


permanent link
Arne Bister (2.6k12832) | answered May 09 '13, 11:45 a.m.
JAZZ DEVELOPER
Hi,

to make the build behave differently, you would have to write a build participant as per the description in this forum entry. The Build FAQ also points to that entry.

It might be easier and more pragmatic to simply rename the snapshot after creation. You can do this manually by following the link to the associated snapshot from the build results object, opening the snapshot and simply replacing its name, then save.
Possibly a post-build participant which renames the snapshot would be able to automate this. But it is probably as much work to simply write a new build participant.

Does this help? Then please mark it as accepted answer.

- Arne
Qunfeng Wang selected this answer as the correct answer

Comments
1
Spencer Murata commented May 09 '13, 5:14 p.m. | edited May 09 '13, 5:17 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

I would add that if you want that functionality out of the box you can open a RFE so it can be considered for inclusion in a later release.  However currently there is no automated out of the box solution for what you describe.  I would say that the actual name of snapshot is not THAT important since it would be linked to the build result which would match your version criteria for the snapshot.  So changing your work flow from looking at the stream history to pick out the build snapshot,  to finding the relevant build result and then navigating to the snapshot associated to that build.


Qunfeng Wang commented May 10 '13, 1:19 a.m.

Thanks for your answer Arne!
What do you mean by build participant? Am I supposed to write some eclipse plugin described in the article below? Then is it possible to get the build number in the plugin? The build number is stored in a property of Ant script.
https://jazz.net/blog/index.php/2012/12/06/how-we-save-time-with-build-engine-participants-and-you-can-too/

I want to customize the snapshot name for two reasons.
1. I'd like to include the build number in the email sent by JBE. The subject of the email seems to contain the snapshot name.
2. A better name makes more sense.

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.