AzurePipelinesEnvironmentInfo.

TeamProject Property

Summary

Gets Azure Pipeline Team Project information.

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
AzurePipelinesTeamProjectInfo The Azure Pipelines Team Project.