The task is used to deliver workspace shapshots. This task can be used to deliver the snapshot generated by the build process when automatically accepting incoming change sets as part of the build process. The default deliver flow target for the workspace is used unless overridden by the streamName attribute.
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 |
| streamName | The name of the stream that is to be the target of the delivery. If streamName is not specified, the default deliver flow target for the workspace is used. | No |
| workspaceUUID | The UUID of the workspace for the build. The value of this attribute is typically ${team.scm.workspaceUUID} because the property is built-in when using the Jazz Build Engine. | Yes |
Deliver APAR change sets
<target name="main" description="Deliver Snapshot">
<xt:deliverworkspacesnapshot
repositoryAddress="${repositoryAddress}"
userId="${userId}"
passwordFile="${passwordFile}"
workspaceUUID="${team.enterprise.scm.workspaceUUID}"
/>
</target>
Example log:
main:
[xt:deliverworkspacesnapshot] Outgoing baselines for build Test.djr.DeliverWorkspaceSnapshot.imsbuild: 1
[xt:deliverworkspacesnapshot] Incoming baselines for build Test.djr.DeliverWorkspaceSnapshot.imsbuild: 0
[xt:deliverworkspacesnapshot] Outgoing change sets for build Test.djr.DeliverWorkspaceSnapshot.imsbuild: 0
[xt:deliverworkspacesnapshot] Incoming change sets for build Test.djr.DeliverWorkspaceSnapshot.imsbuild: 0
[xt:deliverworkspacesnapshot] Delivering baseline: Test.djr.DeliverWorkspaceSnapshot_20150719-1552