The build durations object Duration is used by the $Build object and provides access to a set of time periods associated with a build.


NameDescriptionTypeUsage Example
OnQueueThe period of time that the build has been in a Queuing status. TimeSpan$Build.Duration.OnQueue$ "986 milliseconds"
RunningThe period of time that the build has been running on an agent, calculated by totalling the differences between the each stage start time and finished time.TimeSpan$Build.Duration.Running$ "953 milliseconds"
SinceFirstStageStartThe period of time since the first stage of the current build started running on an agent, until the time build finished or the current time TimeSpan$Build.Duration.SinceFirstStageStart$"968 milliseconds"
TotalThe total period of time since the build was created, until the time build finished or the current time TimeSpan$Build.Duration.Total$"1 second"



  • No labels