Summary
Gets the Go.CD URL.
- Namespace
- Cake
.Common .Build .GoCD .Data - Containing Type
- GoCDEnvironmentInfo
Syntax
public string GoCDUrl { get; }
Examples
if (BuildSystem.GoCD.IsRunningOnGoCD)
{
Information(
@"GoCDUrl: {0}",
BuildSystem.GoCD.Environment.GoCDUrl
);
}
else
{
Information("Not running on GoCD");
}
if (GoCD.IsRunningOnGoCD)
{
Information(
@"GoCDUrl: {0}",
GoCD.Environment.GoCDUrl
);
}
else
{
Information("Not running on GoCD");
}
Value
Type | Description |
---|---|
string | The Go.CD URL. |