It's all about the answers!

Ask a question

Control/rename a build snapshot name.

Christopher Olguin (2612) | asked Aug 27 '13, 6:18 p.m.
edited Aug 27 '13, 8:34 p.m.

We are using the "Command Line - Jazz Build"  build definition template, with Jazz Source Control, and "Accept latest changes before loading".  This creates a snapshot with the build definition name and then a timestamp/buid number.

Like: COMPONENT_NAME_20130823-233.

We would like to be able to change the snapshot name from the build.

Is this possible?

(It would have to be either an Ant task or a scm command.)



3 answers

permanent link
Spencer Murata (2.3k115970) | answered Aug 28 '13, 8:08 a.m.
 There is also an enhancement request out to allow you to set it on the JBE.

permanent link
Christopher Olguin (2612) | answered Aug 27 '13, 8:35 p.m.
 Never mind I found the answer.

The "scm snapshot propertyset name VALUE" command can be used to change the snapshot name.

permanent link
Peggy Shen (2512) | answered Aug 28 '13, 12:51 a.m.
Chris, you can do something like this :

<target name="createSnapshot">
        <exec executable="scm">
            <arg line="create snapshot -r ${rtcWorkspaceNickName} -n ${rtcWorkspace}_${buildID} ${rtcWorkspace}"/>

The snapshot name is : ${rtcWorkspace}_${buildID}
The first part ${rtcWorkspace} is the rtc workspace name, you can replacee with <component_name>  or any name you would like to use.

The second part ${buildID} is the current timestamp such as : 20130823_2330

Christopher Olguin commented Aug 28 '13, 2:33 a.m.

 Thank you.

Your answer

Register or to post your answer.