Summary
Gets the commit information for the build.
- Namespace
- Cake
.Common .Build .AppVeyor .Data - Containing Type
- App
Veyor Repository Info
Syntax
public AppVeyorCommitInfo Commit { get; }
Examples
if (BuildSystem.AppVeyor.IsRunningOnAppVeyor)
{
Information(
@"Repository:
Author: {0}
Email: {1}
ExtendedMessage: {2}
Id: {3}
Message: {4}
Timestamp: {5}",
BuildSystem.AppVeyor.Environment.Repository.Commit.Author,
BuildSystem.AppVeyor.Environment.Repository.Commit.Email,
BuildSystem.AppVeyor.Environment.Repository.Commit.ExtendedMessage,
BuildSystem.AppVeyor.Environment.Repository.Commit.Id,
BuildSystem.AppVeyor.Environment.Repository.Commit.Message,
BuildSystem.AppVeyor.Environment.Repository.Commit.Timestamp
);
}
else
{
Information("Not running on AppVeyor");
}
if (AppVeyor.IsRunningOnAppVeyor)
{
Information(
@"Repository:
Author: {0}
Email: {1}
ExtendedMessage: {2}
Id: {3}
Message: {4}
Timestamp: {5}",
AppVeyor.Environment.Repository.Commit.Author,
AppVeyor.Environment.Repository.Commit.Email,
AppVeyor.Environment.Repository.Commit.ExtendedMessage,
AppVeyor.Environment.Repository.Commit.Id,
AppVeyor.Environment.Repository.Commit.Message,
AppVeyor.Environment.Repository.Commit.Timestamp
);
}
else
{
Information("Not running on AppVeyor");
}
Value
Type | Description |
---|---|
AppVeyorCommitInfo | The commit information for the build. |