BuildSystem.

IsRunningOnTeamCity Property

Summary

Gets a value indicating whether the current build is running on TeamCity.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsRunningOnTeamCity { get; }

Examples

if (BuildSystem.IsRunningOnTeamCity)
{
    TeamCity.ProgressMessage("Doing an action...");
    // Do action...
}

Value

Type Description
bool true if the build currently is running on TeamCity; otherwise, false.