Class BuildStatusTranslator
- java.lang.Object
-
- jetbrains.buildServer.messages.serviceMessages.BuildStatusTranslator
-
- All Implemented Interfaces:
ServiceMessageTranslator,ServerExtension,TeamCityExtension
@Deprecated public class BuildStatusTranslator extends Object implements ServiceMessageTranslator
Deprecated.is deprecated together with corresponding service message, use ##teamcity[buildProblem...]User: kir ##teamcity[buildStatus status='FAILURE' text='{build.status.text} and some aftertext']
-
-
Constructor Summary
Constructors Constructor Description BuildStatusTranslator(ServerExtensionHolder server)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetServiceMessageName()Deprecated.Returns name of the service message supported by this translator.List<BuildMessage1>translate(SRunningBuild runningBuild, BuildMessage1 originalMessage, ServiceMessage serviceMessage)Deprecated.Called to translate service message to a number of usual messages.
-
-
-
Field Detail
-
DELIMITER
public static final String DELIMITER
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildStatusTranslator
public BuildStatusTranslator(@NotNull ServerExtensionHolder server)Deprecated.
-
-
Method Detail
-
translate
@NotNull public List<BuildMessage1> translate(@NotNull SRunningBuild runningBuild, @NotNull BuildMessage1 originalMessage, @NotNull ServiceMessage serviceMessage)
Deprecated.Description copied from interface:ServiceMessageTranslatorCalled 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:
translatein 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()
Deprecated.Description copied from interface:ServiceMessageTranslatorReturns name of the service message supported by this translator. Only service messages with such name will be passed to the translator.- Specified by:
getServiceMessageNamein interfaceServiceMessageTranslator- Returns:
- see above.
-
-