GoCDProvider.

Environment Property

Summary

Gets the Go.CD environment.
Namespace
Cake.Common.Build.GoCD
Containing Type
GoCDProvider

Syntax

public GoCDEnvironmentInfo Environment { get; }

Examples

if (BuildSystem.GoCD.IsRunningOnGoCD)
{
    var counter = BuildSystem.GoCD.Environment.Pipeline.Counter;
}

Value

Type Description
GoCDEnvironmentInfo The Go.CD environment.