The task sets the specified build results non-deletable.

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 a build definition. The buildId is used to retrieve all build results for a particular build. All results found for the build will be updated. Either buildId or buildResultUUID can be provided, but not both. No
buildResultUUID The UUID of the build result. The value of this attribute is typically ${buildResultUUID} because the property is built-in when using the Jazz Build Engine. The ${buildResultUUID} property will be automatically retrieved from the Ant environment if this attribute is not specified. This attribute is used to identify the build result to update. Either buildId or buildResultUUID can be provided, but not both. No

Notes

Examples

Set build deletable

<target name="simulation" description="${lblSimuTarget}" if="run.simulation">
  <BuildActivityStartParent label="${lblSimuTarget}" property="simuParentId"/>
  <BuildActivity label="${lblSimuTarget}"/>
  
  <!-- Load properties files -->
  <property file="${ant.pkg.properties}"/>
  
  <!-- Set build non-deletable -->
  <BuildActivity label="${lblSimuTarget}: Set build non-deletable"/>
  <xt:setBuildResultNonDeletable
    repositoryAddress="${repositoryAddress}"
    userId="${userId}"
    passwordFile="${passwordFile}"
    buildResultUUID="${buildResultUUID}"
  />
  
  ...
</target>
    

Example:

Non-deletable build