The build durations object $Duration provides access to a set of time periods associated with a build.
Name | Description | Type | Usage Example | |
---|---|---|---|---|
Running | The 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 |
OnQueue | The period of time that the build has been in a Queuing status type. | TimeSpan | $Build.Duration.OnQueue$ | 986 milliseconds |
SinceFirstStageStart | The 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 |
Total | The total period of time since the build was created, until the time build finished or the current time | TimeSpan | $Build.Duration.Total$ | 1 second |