ITeamCityProvider.

WriteStatistic(string, string) Method

Summary

Write a statistic message to the TeamCity build log.
Namespace
Cake.Common.Build.TeamCity
Containing Type
ITeamCityProvider

Syntax

void WriteStatistic(string key, string value)

Examples

if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
    BuildSystem.TeamCity.WriteStatistic("ArtifactsSize", "12345");
}
if (TeamCity.IsRunningOnTeamCity)
{
    TeamCity.WriteStatistic("ArtifactsSize", "12345");
}

Parameters

Name Type Description
key string The statistic key.
value string The statistic value.

Return Value

Type Description
void