Summary
Gets Continua CI build agent properties.
- Namespace
- Cake
.Common .Build .ContinuaCI .Data - Containing Type
- Continua
C I Environment Info
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 |
The Continua CI build agent properties. |