Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Control/rename a build snapshot name.

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

0 votes



3 answers

Permanent link
 There is also an enhancement request out to allow you to set it on the JBE.

2 votes


Permanent link
 Never mind I found the answer.

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

1 vote


Permanent link
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

0 votes

Comments

 Thank you.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935
× 1,202
× 562
× 74
× 25

Question asked: Aug 27 '13, 6:18 p.m.

Question was seen: 7,973 times

Last updated: Aug 28 '13, 8:08 a.m.

Related questions
Confirmation Cancel Confirm