The build object $Build provides access to the properties of the current build
Name | Description | Type | Usage Example | |
---|---|---|---|---|
BuildNumber | A zero-based auto-incremented integer allocated to this build (the first build will be build 0, the second build 1, etc) | Integer | $Build.BuildNumber$ | 100 |
Duration | ||||
FirstSharedResourceLabel | ||||
HasErroredStages | ||||
HasFailedStages | ||||
HasNewChanges | Does this build contain changesets which have not been associated with a previous build? | Boolean | $Build.HasNewChanges$ | true |
HasSuccessfulStages | ||||
HasWarnings | ||||
Id | A unique Integer allocated automatically to this build | String | $Build.Id$ | "10" |
IsFeatureBranchBuild | Utilised via build triggers. This expression is set to true when a build is triggered on a non-default branch | Boolean | $Build.IsFeatureBranchBuild$ | true |
LastSharedResourceLabel | ||||
LinkUrl | Build details URL | String | $Build.LinkUrl$ | "http:\\SERVERNAME\New_Project_1\ci\builds\view\123" |
Metrics | A reference object to the metrics associated with this build (as defined below). | Metrics | $Build.Metrics$ | N/A |
SharedResourceLabels | ||||
SharedResources | ||||
StartComment | ||||
StartedBy | The username of the user who initiated the build | String | $Build.StartedBy$ | "peter.toms@finalbuilder.com" |
Version | A reference object for the build version (as defined below). | Version | $Build.Version$ | N/A |