Summary
Gets the current build provider.
- Namespace
- Cake
.Common .Build - Containing Type
- BuildSystem
Syntax
public BuildProvider Provider { get; }
Examples
switch (BuildSystem.Provider)
{
case BuildProvider.GitHubActions:
Information("Running on GitHub Actions");
break;
case BuildProvider.AzurePipelines:
Information("Running on Azure Pipelines");
break;
case BuildProvider.AppVeyor:
Information("Running on AppVeyor");
break;
default:
Information("Running locally or on an unrecognized provider");
break;
}
Value
| Type | Description |
|---|---|
| BuildProvider | The current build provider. |
