AppVeyorProvider.

AddMessage(string, AppVeyorMessageCategoryType, string) Method

Summary

Adds a message to the AppVeyor build log. Messages can be categorised as: Information, Warning or Error.
Namespace
Cake.Common.Build.AppVeyor
Containing Type
AppVeyorProvider

Syntax

public void AddMessage(string message, AppVeyorMessageCategoryType category = Information, string details = null)

Examples

 if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
 {
     BuildSystem.AppVeyor.AddMessage(
             "This is a error message.",
             AppVeyorMessageCategoryType.Error,
             "Error details."
         );

     BuildSystem.AppVeyor.AddMessage(
             "This is a information message.",
             AppVeyorMessageCategoryType.Information,
             "Information details."
         );

     BuildSystem.AppVeyor.AddMessage(
             "This is a warning message.",
             AppVeyorMessageCategoryType.Warning,
             "Warning details."
         );
 }
 else
 {
     Information("Not running on AppVeyor");
 }

Parameters

Name Type Description
message string A short message to display.
category AppVeyorMessageCategoryType The category of the message.
details string Additional message details.

Return Value

Type Description
void