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

How can I get the buildDefinitionId from within a Build Forge step?

 I'd like to be able to get the buildDefinitionId for the build from within a Build Forge step, is there anyway to do that?

1 vote

Comments

Is this a build that was started from RTC? 

Yes, that's correct. Started from RTC, would like to have the RTC buildDefinitionID to be used by a step in Build Forge. 



2 answers

Permanent link

Have you tried echoing the variable within the context of the Step? 

Example: echo "Build ID value: ${buildDefinitionID}"

0 votes


Permanent link
 The build definition ID is NOT included by default.  You would have to create a custom property for the build definition that has the UUID.  Then synchronize the properties and Build Forge should then start getting the definitionID as part of its environment.

Probably the easiest way to figure out the build definitions UUID is to dump them out and find your build definition.  Go to your ccm server path and add /resource/virtual/build/definitions?_prettyPrint=true.  Then find your build definition and copy the UUID into the custom property.

~Spencer

0 votes

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
× 12,014

Question asked: Mar 06 '13, 2:08 p.m.

Question was seen: 5,520 times

Last updated: Mar 07 '13, 3:32 p.m.

Confirmation Cancel Confirm