Class RemoteArtifactTranslator
- java.lang.Object
 - 
- jetbrains.buildServer.messages.serviceMessages.RemoteArtifactTranslator
 
 
- 
- All Implemented Interfaces:
 ServiceMessageTranslator,ServerExtension,TeamCityExtension
public class RemoteArtifactTranslator extends Object implements ServiceMessageTranslator
Registers translators for the following service messages: ##teamcity[remoteArtifact ...] 
- 
- 
Constructor Summary
Constructors Constructor Description RemoteArtifactTranslator(ServerExtensionHolder server) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetServiceMessageName()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
- 
RemoteArtifactTranslator
public RemoteArtifactTranslator(@NotNull ServerExtensionHolder server) 
 - 
 
- 
Method Detail
- 
translate
@NotNull public List<BuildMessage1> translate(@NotNull SRunningBuild runningBuild, @NotNull BuildMessage1 originalMessage, @NotNull ServiceMessage serviceMessage) throws TranslateMessageException
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
 - Throws:
 TranslateMessageException- since 2018.2, when there is a error translating the message or the message has an incorrect format
 
- 
getServiceMessageName
@NotNull public String getServiceMessageName()
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.
 
 
 - 
 
 -