Summary
Gets a value indicating whether the current build is running on TeamCity.
- Namespace
- Cake
.Common .Build .TeamCity - Containing Type
- ITeamCityProvider
Syntax
bool IsRunningOnTeamCity { get; }
Examples
if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
Information("Running on TeamCity");
}
else
{
Information("Not running on TeamCity");
}
if (TeamCity.IsRunningOnTeamCity)
{
Information("Running on TeamCity");
}
else
{
Information("Not running on TeamCity");
}
Value
| Type | Description |
|---|---|
| bool |
true if the current build is running on TeamCity; otherwise, false.
|
