You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

The build object $Build provides access to the properties of the current build

NameDescriptionTypeUsage Example
BuildNumberA 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
DurationA set of time periods associated with the current buildBuild Durations$Build.Duration.Total$ 5 seconds
FirstSharedResourceLabelA description of the first shared resource label acquired by the current buildString$Build.FirstSharedResourceLabel$Server.Testing.Server.QuotaList.A: 1 read lock
HasErroredStagesHave any errors occurred in any stages of the current build?Boolean$Build.HasErroredStages$ False
HasFailedStagesHave any stages of the current build failed?Boolean$Build.HasFailedStages$False
HasNewChangesIs 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
HasSuccessfulStagesHave any stages of the current build been successful?Boolean$Build.HasSuccessfulStages$True
HasWarningsHave any warnings been logged during the current build?Boolean$Build.HasWarnings$ True
IdA unique integer allocated automatically to this buildInteger$Build.Id$10
IsFeatureBranchBuildThis expression is set to true when a build is triggered via a Repository Trigger on a non-default branchBoolean$Build.IsFeatureBranchBuild$true
LastSharedResourceLabelA description of the most recent shared resource label acquired by the current buildString$Build.LastSharedResourceLabel$Server.Testing.Server.QuotaList.A: 1 read lock
LinkUrlThe URL to the build details pageString$Build.LinkUrl$http:\\SERVERNAME\New_Project_1\ci\builds\view\123
MetricsA reference object to the metrics associated with this build (as defined below). ***Metrics$Build.Metrics$N/A
SharedResourceLabels



SharedResources



StartComment



StartedByThe username of the user who initiated the buildString$Build.StartedBy$"peter.toms@finalbuilder.com"
VersionA reference object for the build version (as defined below).Version$Build.Version$N/A
  • No labels