WoodpeckerCIEnvironmentInfo.

CI Property

Summary

Gets the CI environment name.

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.