ContinuaCIEnvironmentInfo.

Variable Property

Summary

Gets Continua CI build variables.

Syntax

public IDictionary<string, string> Variable { get; }

Examples

if (BuildSystem.ContinuaCI.IsRunningOnContinuaCI)
{
    Information(
        @"Variables:
        {0}",
        BuildSystem.ContinuaCI.Environment.Variable.Aggregate(
        new StringBuilder(),(builder, pair) => builder.AppendLine(
        string.Format(":", pair.Key, pair.Value)),
        builder => builder.ToString())
        );
}
else
{
    Information("Not running on ContinuaCI");
}
if (ContinuaCI.IsRunningOnContinuaCI)
{
    Information(
        @"Variables:
        {0}",
        ContinuaCI.Environment.Variable.Aggregate(
        new StringBuilder(),(builder, pair) => builder.AppendLine(
        string.Format(":", pair.Key, pair.Value)),
        builder => builder.ToString())
        );
}
else
{
    Information("Not running on ContinuaCI");
}

Value

Type Description
IDictionary<string, string> The Continua CI build variables.