The stage object $Stage provides access to the properties of the current stage. This is also used as a child object of the Stages Collection under the Build Object e.g. $Build.Stages.First().Name$
Name | Description | Type | Usage Example | |
---|---|---|---|---|
AgentName | The host name of the agent that the current stage is running on. | String | $Stage.AgentName$ | "ciagent01" |
Elapsed | The time period since the current stage was started. | TimeSpan | $Stage.Elapsed$ | |
Finished | The date/time when the current stage finished (if finished). | DateTime | $Stage.Finished$ | |
HasWarnings | True if the current stage has warnings | Boolean | $Stage.HasWarnings$ | |
IsError | True if the current stage has errors | Boolean | $Stage.IsError$ | |
IsFailure | True if the current stage has failures | Boolean | $Stage.IsFailure$ | |
IsSpecial | True if the current stage is a special stage created to run pre- or post-stage events | Boolean | $Stage.IsSpecial$ | |
IsSuccessful | True if the current stage is successful | Boolean | $Stage.IsSuccessful$ | |
Metrics | The metrics associated with the current stage. | Metrics | $Stage.Metrics | |
Name | The name of the current stage as defined within the workflow editor. | String | $Stage.Name$ | "Test Stage" |
Order | The running order of the current stage. | Integer | $Stage.Order$ | |
Started | The date/time when the current stage was started. | DateTime | $Stage.Started$ |