Summary
Gets a value indicating whether the current build is running on Azure Pipelines.
- Namespace
- Cake
.Common .Build .AzurePipelines - Containing Type
- I
Azure Pipelines Provider
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.
|
