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