Summary
Gets the CI environment name.
- Namespace
- Cake
.Common .Build .WoodpeckerCI .Data - Containing Type
- Woodpecker
C I Environment Info
Syntax
public string CI { get; }
Examples
if (BuildSystem.WoodpeckerCI.IsRunningOnWoodpeckerCI)
{
Information(
@"CI Environment: {0}",
BuildSystem.WoodpeckerCI.Environment.CI
);
}
else
{
Information("Not running on WoodpeckerCI");
}
if (WoodpeckerCI.IsRunningOnWoodpeckerCI)
{
Information(
@"CI Environment: {0}",
WoodpeckerCI.Environment.CI
);
}
else
{
Information("Not running on WoodpeckerCI");
}
Value
Type | Description |
---|---|
string | The CI environment name. |