BuildSystem.

GoCD Property

Summary

Gets the Go.CD Provider.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public IGoCDProvider GoCD { get; }

Examples

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

Value

Type Description
IGoCDProvider