The macro is used to request a build.
The macro supports Team Build Attributes, as well as, its own macro specific attributes. Click on a link for more information on the common attributes.
The following table describes the macro specific attributes for the macro:
| Macro Specific Attributes | ||
| Attribute | Description | Required |
| allowDuplicateRequests |
Enable or disable duplicate requests. Valid values are true and false. The default is false.
|
No |
| buildDefinitionId | The ID of the build that is being requested. | Yes |
| deletePropertiesFile | Path to a properties file. This properties file specifies properties that should be omitted when the build is run. The properties are assumed to exist in the build definition. The path can be a relative path from the base directory of the build file or a full path. | No |
| overridePropertiesFile | Path to a properties file. This properties file can add new properties or override existing properties in the build definition. The path can be a relative path from the base directory of the build file or a full path. | No |
| personalBuild |
Specifies whether or not the request is for a personal build. Valid values are true and false. The default is false.
|
No |
| requestUUIDProperty | Stores the UUID of the retrieved build request. It is set only if a request is found. | No |
| resultUUIDProperty | Property to store the UUID of the build result. | No |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed Materials - Property of IBM
(c) Copyright IBM Corporation 2020. All Rights Reserved.
Note to U.S. Government Users Restricted Rights:
Use, duplication or disclosure restricted by GSA ADP Schedule
Contract with IBM Corp.
-->
<project
basedir="."
default="all"
name="Example"
xmlns:xt="antlib:com.ibm.team.build.extensions.toolkit">
<description>Example</description>
<!-- Load build extensions -->
<xt:loadBuildExtensions/>
<xt:getJarLocation property="jarPath"/>
<!-- Load common resources -->
<import>
<javaresource name="scripts/smpe/imports/$common.xml">
<classpath location="${jarPath}"/>
</javaresource>
</import>
<!-- - - - - - - - - - - - - - - - - - - *
* Example *
*- - - - - - - - - - - - - - - - - - - -->
<target name="main" description="main">
<RequestTeamBuild id="${buildId}"/>
</target>
<target depends="main" description="all" name="all"/>
</project>