The task returns the workspace name for the given workspace UUID in the specified Ant property.

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
property The name of the Ant property in which to return the workspace name. Yes
workspaceUUID The UUID of the workspace. The value of this attribute is typically ${team.scm.workspaceUUID} because the property is built-in when using the Jazz Build Engine. Yes

Notes

Examples

Deliver APAR change sets

<target name="main" description="${lblMainPackageChild}">
  <BuildActivityStartChild label="${lblMainPackageChild}" parent="${mainParentId}"/>
  <BuildActivity label="${lblMainPackageChild}"/>
  
  <!-- Get workspace name -->
  <xt:getworkspacename
    repositoryAddress="${repositoryAddress}"
    userId="${userId}"
    passwordFile="${passwordFile}"
    property="workspace.name"
    workspaceUUID="${team.enterprise.scm.workspaceUUID}"
  />
  
  <!-- Build the real APAR -->
  <BuildActivity label="${lblMainPackageChild}: Build the real APAR"/>
  <BuildActivity label="${lblMainPackageChild}: Build distributed APAR: @{fmid}"/>
  
  <zbuild command="buildApar">
    <property name="IBMRelEngData.apar.name" value="${pkgcfg.driver}"/>
    <property name="IBMRelEngData.build.option.onlyOwnedWorkspaces" value="NO"/>
    <property name="IBMRelEngData.build.option.saveToPdsName" value="${pkgsrv.saveToPdsName.apar}"/>
    <property name="IBMRelEngData.build.option.servicePackage.packageAsUsermod" value="NO"/>
    <property name="IBMRelEngData.build.option.servicePackage.rebuild" value="SMART"/>
    <property name="IBMRelEngData.build.option.shipToAddress" value="${pkgsrv.shipToAddress}"/>
    <property name="IBMRelEngData.build.option.skipDriverCheck" value="1"/>
    <property name="IBMRelEngData.fmid.name" value="@{fmid}"/>
    <property name="IBMRelEngData.release.local.name" value="${release.lcl}"/>
    <property name="IBMRelEngData.source.rtc.workitem.projectArea" value="${zbuildProjectArea}"/>
    <property name="IBMRelEngData.source.rtc.workspace.name" value="${workspace.name}"/>
  </zbuild>
</target>