...
Name | Description | Type | Usage Example | |||||||
---|---|---|---|---|---|---|---|---|---|---|
BuildNumber | A zero-based auto-incremented integer allocated to the current build (the first build will be build 0, the second build 1, etc) | Integer | $Build.BuildNumber$ | 100 | ||||||
Duration | A set of time periods associated with the current build | Build Durations | $Build.Duration.Total$ | 5 seconds | ||||||
FirstSharedResourceLabel | A description of the first shared resource label acquired by the current build | String | $Build.FirstSharedResourceLabel$ | Server.Testing.Server.QuotaList.A: 1 read lock | ||||||
HasErroredStages | Have any errors occurred in any stages of the current build? | Boolean | $Build.HasErroredStages$ | False | ||||||
HasFailedStages | Have any stages of the current build failed? | Boolean | $Build.HasFailedStages$ | False | ||||||
HasNewChanges | Is the current build associated with any new repository changesets which have not previous been built by another build for the same configuration? | Boolean | $Build.HasNewChanges$ | True | ||||||
HasSuccessfulStages | Have any stages of the current build been successful? | Boolean | $Build.HasSuccessfulStages$ | True | ||||||
HasWarnings | Have any warnings been logged during the current build? | Boolean | $Build.HasWarnings$ | True | ||||||
Id | A unique integer allocated automatically to this build | Integer | $Build.Id$ | 10 | ||||||
IsFeatureBranchBuild | This expression is set to true when a build is triggered via a Repository Trigger on a non-default branch | Boolean | $Build.IsFeatureBranchBuild$ | true | ||||||
LastSharedResourceLabel | A description of the most recent shared resource label acquired by the current build | String | $Build.LastSharedResourceLabel$ | Server.Testing.Server.QuotaList.AB: 1 read lock | ||||||
LinkUrl | The URL to the build details page | String | $Build.LinkUrl$ | http:\\SERVERNAME\New_Project_1\ci\builds\view\123 | ||||||
Metrics | A reference object to access the any metrics associated with this build (as defined below). ***recorded by build actions | Metrics | $Build.Metrics$ | See Metrics | ||||||
SharedResourceLabels | A comma-delimited list of shared resource labels acquired by the current build | String | "Server.Testing.Server.QuotaList.A: 1 read lock", "Server.Testing.Server.QuotaList.B: 1 read lock" | |||||||
SharedResources | A list of shared resources acquired by the current build | SharedResources | ||||||||
Stages | A list of build stages | Stages | ||||||||
StartComment | The first comment logged during the build | String | ||||||||
StartedBy | A reference to | N/A | SharedResourceLabels | SharedResources | StartComment | StartedBy | The username of the user who initiated the build | StringUser | $Build.StartedBy$ | "peter.toms@finalbuilder.com" |
Version | A reference object for to the build version (as defined below). | Version | $Build.Version$ | N/A |