Summary
Gets Azure Pipeline Team Project information.
- Namespace
- Cake
.Common .Build .AzurePipelines .Data - Containing Type
- Azure
Pipelines Environment Info
Syntax
public AzurePipelinesTeamProjectInfo TeamProject { get; }
Examples
if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
Information(
@"TeamProject:
Id: {0}
Name: {1}",
BuildSystem.AzurePipelines.Environment.TeamProject.Id,
BuildSystem.AzurePipelines.Environment.TeamProject.Name
);
}
else
{
Information("Not running on Azure Pipelines");
}
if (AzurePipelines.IsRunningOnAzurePipelines)
{
Information(
@"TeamProject:
Id: {0}
Name: {1}",
AzurePipelines.Environment.TeamProject.Id,
AzurePipelines.Environment.TeamProject.Name
);
}
else
{
Information("Not running on Azure Pipelines");
}
Value
Type | Description |
---|---|
Azure |
The Azure Pipelines Team Project. |