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