Out of the box support

The GoCD alias, which returns an IGoCDProvider instance can be used to interact with the GoCD environment.

The following example prints how many times the pipeline has been run if running on GoCD:

if (BuildSystem.GoCD.IsRunningOnGoCD)
    Information("Not running on GoCD");

See IGoCDProvider for details and available methods to interact with GoCD.

Available 3rd party extensions

No extensions found