AppVeyorEnvironmentInfo.

ApiUrl Property

Summary

Gets the AppVeyor build agent API URL.

Syntax

public string ApiUrl { get; }

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"API URL:{0},
        BuildSystem.AppVeyor.Environment.ApiUrl
        );
}
else
{
    Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"API URL:{0},
        AppVeyor.Environment.ApiUrl
        );
}
else
{
    Information("Not running on AppVeyor");
}

Value

Type Description
string The AppVeyor build agent API URL.