GoCDEnvironmentInfo.

GoCDUrl Property

Summary

Gets the Go.CD URL.

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.