The log message object is an item in the Log Messages Collection which provides access to the properties of a build log message. e.g. $Build.ErrorAndWarningMessages.First().Type$
Name | Description | Type | Usage Example | |
---|---|---|---|---|
ActionName | The name of the action that the message is logged for. | String | $Stage.AgentName$ | "FinalBuilder" |
ExpandedActionName | The expanded name of the action that the message is logged for. | String | $Stage.Elapsed$ | "FinalBuilder($Workspace$)" |
Id | The id of the message. | Integer | $Stage.Finished$ | 123 |
Line | The message details as a line of text. | String | $Stage.HasWarnings$ | "FinalBuilder, FinalBuilder(), 123, ... , warning" |
StageName | The name of the stage that the message is logged for. | String | $Stage.IsError$ | "Build" |
Text | The text of the message. | String | $Stage.IsFailure$ | "Message here" |
TimeStamp | The date and time this message was logged. | DateTime | $Stage.IsSpecial$ | "9/11/2018 10:44:54" |
Type | The type of message (information, warning or error). | String | $Stage.IsSuccessful$ | "Warning" |