The build object $Build provides access to the properties of the current build
Name | Description | Type | Usage Example | |
---|---|---|---|---|
ArtifactCount | Integer | $Configuration.LastBuild.BuildNumber$ | 100 | |
Branches | Build Durations | $Build.Duration.Total$ | 5 seconds | |
BuildNumber | String | $Build.FirstSharedResourceLabel$ | Server.Testing.Server.QuotaList.A: 1 read lock | |
ChangesetCount | Boolean | $Build.HasErroredStages$ | False | |
Created | Boolean | $Build.HasFailedStages$ | False | |
Finished | Boolean | $Build.HasNewChanges$ | True | |
FirstTagName | Boolean | $Build.HasSuccessfulStages$ | True | |
FirstTagType | Boolean | $Build.HasWarnings$ | True | |
HasErroredStages | ||||
HasFailedStages | ||||
HasSuccessfulStages | ||||
HasWarnings | ||||
Id | A unique integer allocated automatically to this build | Integer | $Build.Id$ | 10 |
IsPinned | This expression is set to true when a build is triggered via a Repository Trigger on a non-default branch | Boolean | $Build.IsFeatureBranchBuild$ | true |
PinComment | A description of the most recent shared resource label acquired by the current build | String | $Build.LastSharedResourceLabel$ | Server.Testing.Server.QuotaList.B: 1 read lock |
Pinned | The URL to the build details page | String | $Build.LinkUrl$ | http:\\SERVERNAME\New_Project_1\ci\builds\view\123 |
PinnedBy | A reference object to access the any metrics recorded by build actions | Metrics | $Build.Metrics$ | See Metrics |
Started | 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" | |
StartedBy | A list of shared resources acquired by the current build | Shared Resources | ||
State | A list of build stages | Stages Collection | ||
SummaryState | The first comment logged during the build | String | this is a comment | |
StartedBy | A reference to the user who initiated the build | User | $Build.StartedBy$ | mr.twisted.buildstarter@finalbuilder.com |
State | ||||
SummaryState | ||||
TagCount | ||||
TriggerName | ||||
Version | A reference to the build version | Version | $Build.Version$ | N/A |