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

Compare with Current View Page History

Version 1 Next »

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

NameDescriptionTypeUsage 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



IdA unique integer allocated automatically to this buildInteger$Build.Id$10
IsPinnedThis expression is set to true when a build is triggered via a Repository Trigger on a non-default branchBoolean$Build.IsFeatureBranchBuild$true
PinCommentA description of the most recent shared resource label acquired by the current buildString$Build.LastSharedResourceLabel$Server.Testing.Server.QuotaList.B: 1 read lock
PinnedThe URL to the build details pageString$Build.LinkUrl$http:\\SERVERNAME\New_Project_1\ci\builds\view\123
PinnedByA reference object to access the any metrics recorded by build actionsMetrics$Build.Metrics$See Metrics
StartedA comma-delimited list of shared resource labels acquired by the current buildString
"Server.Testing.Server.QuotaList.A: 1 read lock", "Server.Testing.Server.QuotaList.B: 1 read lock"
StartedByA list of shared resources acquired by the current buildShared Resources

StateA list of build stages Stages Collection

SummaryStateThe first comment logged during the buildString
this is a comment
StartedByA reference to the user who initiated the buildUser$Build.StartedBy$mr.twisted.buildstarter@finalbuilder.com
State



SummaryState



TagCount



TriggerName



VersionA reference to the build versionVersion$Build.Version$N/A
  • No labels