BuildSystem.

IsRunningOnAzurePipelines Property

Summary

Gets a value indicating whether this instance is running on Azure Pipelines.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsRunningOnAzurePipelines { get; }

Examples

if (BuildSystem.IsRunningOnAzurePipelines)
{
    // Get the build commit hash.
    var commitHash = BuildSystem.AzurePipelines.Environment.Repository.SourceVersion;
}

Value

Type Description
bool true if this instance is running on Azure Pipelines; otherwise, false.