It's all about the answers!

Ask a question

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


Scott Crouch (48532426) | asked Mar 06 '13, 2:08 p.m.
 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?

Comments
Spencer Murata commented Mar 06 '13, 2:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Is this a build that was started from RTC? 


Scott Crouch commented Mar 06 '13, 3:25 p.m. | edited Mar 06 '13, 3:29 p.m.

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
William Frontiero (111) | answered Mar 07 '13, 2:49 p.m.

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

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


permanent link
Spencer Murata (2.3k115971) | answered Mar 07 '13, 3:32 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
 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

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.