The task is used to retrieve the name or UUID of the workspace used by the specified build.

Attributes

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
name Whether or not to return the name of the workspace. The default is true, the workspace name is returned. If false is specified, the UUID of the workspace is returned. No
property The name of the Ant property in which to return the name or UUID of the workspace. Yes

Notes

Examples

Get build definition workspace

<target name="get" description="Get Build Definition Workspace">
  
  <xt:getBuildDefinitionWorkspace
    repositoryAddress="${repositoryAddress}"
    userId="${userId}"
    password="${password}"
    buildId="Setup 703 dependency build"
    property="workspace"
  />
  
  <echo>${workspace}</echo>
  
</target>
    

Result:

[echo] Setup 703 Build wks