AppVeyorEnvironmentInfo.

Repository Property

Summary

Gets AppVeyor repository information.

Syntax

public AppVeyorRepositoryInfo Repository { get; }

Examples

if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Repository:
        Branch: {0}
        Name: {1}
        Provider: {2}
        Scm: {3}",
        BuildSystem.AppVeyor.Environment.Repository.Branch,
        BuildSystem.AppVeyor.Environment.Repository.Name,
        BuildSystem.AppVeyor.Environment.Repository.Provider,
        BuildSystem.AppVeyor.Environment.Repository.Scm
        );
}
else
{
    Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
    Information(
        @"Repository:
        Branch: {0}
        Name: {1}
        Provider: {2}
        Scm: {3}",
        AppVeyor.Environment.Repository.Branch,
        AppVeyor.Environment.Repository.Name,
        AppVeyor.Environment.Repository.Provider,
        AppVeyor.Environment.Repository.Scm
        );
}
else
{
    Information("Not running on AppVeyor");
}

Value

Type Description
AppVeyorRepositoryInfo The AppVeyor repository information.