ContinuaCIEnvironmentInfo.

AgentProperty Property

Summary

Gets Continua CI build agent properties.

Syntax

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

Examples

if (BuildSystem.ContinuaCI.IsRunningOnContinuaCI)
{
    Information(
        @"Agent Property:
        {0}",
        BuildSystem.ContinuaCI.Environment.AgentProperty.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.AgentProperty.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 agent properties.