AppVeyorProvider.

Environment Property

Summary

Gets the AppVeyor environment.
Namespace
Cake.Common.Build.AppVeyor
Containing Type
AppVeyorProvider

Syntax

public AppVeyorEnvironmentInfo Environment { get; }

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Environment:
        ApiUrl: {0}
        Configuration: {1}
        JobId: {2}
        JobName: {3}
        Platform: {4}
        ScheduledBuild: {5}",
        BuildSystem.AppVeyor.Environment.ApiUrl,
        BuildSystem.AppVeyor.Environment.Configuration,
        BuildSystem.AppVeyor.Environment.JobId,
        BuildSystem.AppVeyor.Environment.JobName,
        BuildSystem.AppVeyor.Environment.Platform,
        BuildSystem.AppVeyor.Environment.ScheduledBuild
        );
}
else
{
    Information("Not running on AppVeyor");
}

Value

Type Description
AppVeyorEnvironmentInfo The AppVeyor environment.