public class BuildAgentControllerImpl extends Object implements BuildAgentController
Constructor and Description |
---|
BuildAgentControllerImpl(AgentContext agentContext,
AgentQueueAccessor agentQueueAccessor,
BuildLoggerManager buildLoggerManager,
ResultProcessor resultProcessor,
CapabilityContext capabilityContext,
RemotedCapabilitySetManager capabilitySetManager,
CustomVariableContext customVariableContext,
ErrorUpdateHandler errorUpdateHandler,
ExecutionPhaseService executionPhaseService,
com.atlassian.event.api.EventPublisher eventPublisher,
DockerContainerControllerFactory dockerContainerControllerFactory,
BuildWarningSummaryCollationService buildWarningSummaryCollationService,
BuildLoggingContext buildLoggingContext,
SecureXStreamFactory secureXStreamFactory,
BuildDirectoryManager buildDirectoryManager,
ArtifactManager artifactManager) |
Modifier and Type | Method and Description |
---|---|
void |
finishBuilding(ExecutableBuildAgent buildAgent) |
boolean |
hasPreviousBuildResultToSend(ExecutableBuildAgent executableBuildAgent) |
void |
onEvent(ExecutableQueueUpdate executableQueueUpdate) |
void |
prepareForBuilding(ExecutableBuildAgent buildAgent) |
boolean |
sendPreviousBuildResultIfRequired(ExecutableBuildAgent buildAgent) |
void |
waitAndPerformBuild(ExecutableBuildAgent buildAgent)
Gets the passed build agent to wait for a build and the run the build
|
public BuildAgentControllerImpl(AgentContext agentContext, AgentQueueAccessor agentQueueAccessor, BuildLoggerManager buildLoggerManager, ResultProcessor resultProcessor, CapabilityContext capabilityContext, RemotedCapabilitySetManager capabilitySetManager, CustomVariableContext customVariableContext, ErrorUpdateHandler errorUpdateHandler, ExecutionPhaseService executionPhaseService, com.atlassian.event.api.EventPublisher eventPublisher, DockerContainerControllerFactory dockerContainerControllerFactory, BuildWarningSummaryCollationService buildWarningSummaryCollationService, BuildLoggingContext buildLoggingContext, @Qualifier(value="remoteCommunicationSecuredXStreamFactory") SecureXStreamFactory secureXStreamFactory, BuildDirectoryManager buildDirectoryManager, ArtifactManager artifactManager)
public void prepareForBuilding(@NotNull ExecutableBuildAgent buildAgent)
prepareForBuilding
in interface BuildAgentController
public void finishBuilding(@NotNull ExecutableBuildAgent buildAgent)
finishBuilding
in interface BuildAgentController
public void waitAndPerformBuild(@NotNull ExecutableBuildAgent buildAgent)
BuildAgentController
waitAndPerformBuild
in interface BuildAgentController
public boolean hasPreviousBuildResultToSend(ExecutableBuildAgent executableBuildAgent)
hasPreviousBuildResultToSend
in interface BuildAgentController
public boolean sendPreviousBuildResultIfRequired(ExecutableBuildAgent buildAgent)
sendPreviousBuildResultIfRequired
in interface BuildAgentController
@EventListener public void onEvent(ExecutableQueueUpdate executableQueueUpdate)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.