IAzurePipelinesProvider.

IsRunningOnAzurePipelines Property

Summary

Gets a value indicating whether the current build is running on Azure Pipelines.

Syntax

bool IsRunningOnAzurePipelines { get; }

Examples

if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
    Information("Running on Azure Pipelines");
}
else
{
    Information("Not running on Azure Pipelines");
}
if (AzurePipelines.IsRunningOnAzurePipelines)
{
    Information("Running on Azure Pipelines");
}
else
{
    Information("Not running on Azure Pipelines");
}

Value

Type Description
bool true if the current build is running on Azure Pipelines; otherwise, false.