Class BuildMessagesPasswordTranslator
- java.lang.Object
-
- jetbrains.buildServer.agent.AgentLifeCycleAdapter
-
- jetbrains.buildServer.agent.parameters.BuildMessagesPasswordTranslator
-
- All Implemented Interfaces:
EventListener
,AgentExtension
,AgentLifeCycleListener
,BuildMessagesTranslator
,TeamCityExtension
,PositionAware
,PositionConstraintAware
public class BuildMessagesPasswordTranslator extends AgentLifeCycleAdapter implements BuildMessagesTranslator, PositionAware
-
-
Constructor Summary
Constructors Constructor Description BuildMessagesPasswordTranslator(EventDispatcher<AgentLifeCycleListener> events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildFinished(AgentRunningBuild build, BuildFinishedStatus buildStatus)
Called after the buildFinished event is sent to the server Is called afterAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this eventPositionConstraint
getConstraint()
Constraint to be respected during objects sorting.String
getOrderId()
Returns object id that can be referenced by {PositionConstraint
}List<BuildMessage1>
translateMessages(AgentRunningBuild build, List<BuildMessage1> messages)
Translates collection of messages to a number of some other messages.-
Methods inherited from class jetbrains.buildServer.agent.AgentLifeCycleAdapter
afterAgentConfigurationLoaded, afterAtrifactsPublished, agentInitialized, agentShutdown, agentStarted, beforeAgentConfigurationLoaded, beforeBuildFinish, beforeBuildFinish, beforeBuildInterrupted, beforeRunnerStart, beforeRunnerStart, buildFinished, buildStarted, checkoutDirectoryRemoved, checkoutModeResolved, dependenciesDownloaded, messageLogged, messageLogged, personalPatchApplied, personalPatchReverted, pluginsLoaded, preparationFinished, runnerFinished, sourcesUpdated
-
-
-
-
Constructor Detail
-
BuildMessagesPasswordTranslator
public BuildMessagesPasswordTranslator(@NotNull EventDispatcher<AgentLifeCycleListener> events)
-
-
Method Detail
-
translateMessages
@NotNull public List<BuildMessage1> translateMessages(@NotNull AgentRunningBuild build, @NotNull List<BuildMessage1> messages)
Description copied from interface:BuildMessagesTranslator
Translates collection of messages to a number of some other messages.- Specified by:
translateMessages
in interfaceBuildMessagesTranslator
messages
- messages to translate- Returns:
- a list of translated messages
-
buildFinished
public void buildFinished(@NotNull AgentRunningBuild build, @NotNull BuildFinishedStatus buildStatus)
Description copied from interface:AgentLifeCycleListener
Called after the buildFinished event is sent to the server Is called afterAgentLifeCycleListener.beforeBuildFinish(BuildFinishedStatus)
New build may be started while processing this event- Specified by:
buildFinished
in interfaceAgentLifeCycleListener
- Overrides:
buildFinished
in classAgentLifeCycleAdapter
- Parameters:
build
- buildbuildStatus
- status of the build
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAware
Constraint to be respected during objects sorting.- Specified by:
getConstraint
in interfacePositionConstraintAware
- Returns:
- position constraint
-
getOrderId
@NotNull public String getOrderId()
Description copied from interface:PositionAware
Returns object id that can be referenced by {PositionConstraint
}- Specified by:
getOrderId
in interfacePositionAware
- Returns:
- object id
-
-