BuildSystem.

IsRunningOnGoCD Property

Summary

Gets a value indicating whether the current build is running on Go.CD.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsRunningOnGoCD { get; }

Examples

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

Value

Type Description
bool true if the build currently is running on Go.CD; otherwise, false.