IAppVeyorProvider.

Environment Property

Summary

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

Syntax

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");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Environment:
        ApiUrl: {0}
        Configuration: {1}
        JobId: {2}
        JobName: {3}
        Platform: {4}
        ScheduledBuild: {5}",
        AppVeyor.Environment.ApiUrl,
        AppVeyor.Environment.Configuration,
        AppVeyor.Environment.JobId,
        AppVeyor.Environment.JobName,
        AppVeyor.Environment.Platform,
        AppVeyor.Environment.ScheduledBuild
        );
}
else
{
    Information("Not running on AppVeyor");
}

Value

Type Description
AppVeyorEnvironmentInfo The AppVeyor environment.