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.)

Thanks,

Chris

3 answers



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

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}"/>
        </exec>
  </target>

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

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

 Thank you.


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.

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.