GoCDEnvironmentInfo.

Pipeline Property

Summary

Gets GoCD pipeline information.

Syntax

public GoCDPipelineInfo Pipeline { get; }

Examples

if (BuildSystem.GoCD.IsRunningOnGoCD)
{
    Information(
        @"Pipeline:
        Name: {0}
        Counter: {1}
        Label: {2}",
        BuildSystem.GoCD.Environment.Pipeline.Name,
        BuildSystem.GoCD.Environment.Pipeline.Counter,
        BuildSystem.GoCD.Environment.Pipeline.Label
        );
}
else
{
    Information("Not running on GoCD");
}
if (GoCD.IsRunningOnGoCD)
{
    Information(
        @"Pipeline:
        Name: {0}
        Counter: {1}
        Label: {2}",
        GoCD.Environment.Pipeline.Name,
        GoCD.Environment.Pipeline.Counter,
        GoCD.Environment.Pipeline.Label
        );
}
else
{
    Information("Not running on GoCD");
}

Value

Type Description
GoCDPipelineInfo The GoCD pipeline information.