Summary
Gets AppVeyor repository information.
- Namespace
- Cake
.Common .Build .AppVeyor .Data - Containing Type
- App
Veyor Environment Info
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 |
---|---|
App |
The AppVeyor repository information. |