The task is used to retrieve the UUID of the specified build definition.
The task supports Team Build Attributes, Build Extensions Debugging Attributes, Build Extensions General Attributes, as well as, its own task specific attributes. Click on a link for more information on the common attributes.
The following table describes the task specific attributes for the task:
| Task Specific Attributes | ||
| Attribute | Description | Required |
| buildId | The ID of the build definition. | Yes |
| property | The name of the Ant property in which to return the build definition UUID. | Yes |
Get build definition UUID
<target name="get" description="Get Build Definition UUID">
<xt:getBuildDefinitionUuid
repositoryAddress="${repositoryAddress}"
userId="${userId}"
password="${password}"
buildId="Setup 703 dependency build"
property="id"
/>
<echo>${id}</echo>
</target>
Result:
[echo] __Q3xsCelEe2v0ohNc-A3jQ