Class BuildStatisticValueTranslator
- java.lang.Object
-
- jetbrains.buildServer.messages.serviceMessages.BuildStatisticValueTranslator
-
- All Implemented Interfaces:
ServiceMessageTranslator
,ServerExtension
,TeamCityExtension
public class BuildStatisticValueTranslator extends Object implements ServiceMessageTranslator
User: kir ##teamcity[buildStatisticValue key='someKey' value='443']
-
-
Constructor Summary
Constructors Constructor Description BuildStatisticValueTranslator(ServerExtensionHolder server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getServiceMessageName()
Returns name of the service message supported by this translator.List<BuildMessage1>
translate(SRunningBuild runningBuild, BuildMessage1 originalMessage, ServiceMessage serviceMessage)
Called to translate service message to a number of usual messages.
-
-
-
Constructor Detail
-
BuildStatisticValueTranslator
public BuildStatisticValueTranslator(@NotNull ServerExtensionHolder server)
-
-
Method Detail
-
translate
@NotNull public List<BuildMessage1> translate(@NotNull SRunningBuild runningBuild, @NotNull BuildMessage1 originalMessage, @NotNull ServiceMessage serviceMessage)
Description copied from interface:ServiceMessageTranslator
Called to translate service message to a number of usual messages.
Note: no attempts should be made to use the build log from the running build to log some messages
SBuild.getBuildLog()
, instead the translator should return all the messages which should be inserted into the build log instead of the processed service message.- Specified by:
translate
in interfaceServiceMessageTranslator
- Parameters:
runningBuild
- running buildoriginalMessage
- original message from which service message was createdserviceMessage
- service message- Returns:
- a list of translated messages
-
getServiceMessageName
@NotNull public String getServiceMessageName()
Description copied from interface:ServiceMessageTranslator
Returns name of the service message supported by this translator. Only service messages with such name will be passed to the translator.- Specified by:
getServiceMessageName
in interfaceServiceMessageTranslator
- Returns:
- see above.
-
-