Summary
Gets TeamCity project information.
- Namespace
- Cake
.Common .Build .TeamCity .Data - Containing Type
- Team
City Environment Info
Syntax
public TeamCityProjectInfo Project { get; }
Examples
if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
Information(
@"Project:
Name: {0}",
BuildSystem.TeamCity.Environment.Project.Name
);
}
else
{
Information("Not running on TeamCity");
}
if (TeamCity.IsRunningOnTeamCity)
{
Information(
@"Project:
Name: {0}",
TeamCity.Environment.Project.Name
);
}
else
{
Information("Not running on TeamCity");
}
Value
Type | Description |
---|---|
TeamCityProjectInfo | The TeamCity project information. |