Package com.atlassian.bamboo.build
Class DefaultStopBuildManager
java.lang.Object
com.atlassian.bamboo.build.DefaultStopBuildManager
- All Implemented Interfaces:
StopBuildManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelAllBuilds
(@NotNull PlanKey planKey, boolean abandonResult) Will stop all builds running for plan identified byPlanKey
void
cancelBuild
(@NotNull PlanResultKey planResultKey, boolean abandonResult) Cancel a running build optionally abandoning the resultvoid
cancelDeployment
(@NotNull ResultKey resultKey, @NotNull Long deploymentResultId, @Nullable Long agentId) Cancel a running deploymentvoid
onCancelCurrentBuildEvent
(@NotNull CancelCurrentBuildEvent event) void
onVerifyAgentBuildingStatus
(@NotNull VerifyAgentBuildingStatusEvent event) void
setAgentCommandSender
(AgentCommandSender agentCommandSender) void
setAuthenticationContext
(BambooAuthenticationContext authenticationContext) void
setBuildLoggerManager
(BuildLoggerManager buildLoggerManager) void
setBuildQueueManager
(BuildQueueManager buildQueueManager) void
setEventPublisher
(com.atlassian.event.api.EventPublisher eventPublisher) void
setPlanExecutionManager
(PlanExecutionManager planExecutionManager) void
setScheduler
(org.quartz.Scheduler scheduler) void
stopAgentNicely
(@NotNull BuildAgent buildAgent) Will tell an agent to stop after it's finished the current build
-
Constructor Details
-
DefaultStopBuildManager
public DefaultStopBuildManager()
-
-
Method Details
-
cancelAllBuilds
Description copied from interface:StopBuildManager
Will stop all builds running for plan identified byPlanKey
- Specified by:
cancelAllBuilds
in interfaceStopBuildManager
-
cancelBuild
Description copied from interface:StopBuildManager
Cancel a running build optionally abandoning the result- Specified by:
cancelBuild
in interfaceStopBuildManager
-
onVerifyAgentBuildingStatus
@EventListener public void onVerifyAgentBuildingStatus(@NotNull @NotNull VerifyAgentBuildingStatusEvent event) -
onCancelCurrentBuildEvent
@EventListener public void onCancelCurrentBuildEvent(@NotNull @NotNull CancelCurrentBuildEvent event) -
cancelDeployment
public void cancelDeployment(@NotNull @NotNull ResultKey resultKey, @NotNull @NotNull Long deploymentResultId, @Nullable @Nullable Long agentId) Description copied from interface:StopBuildManager
Cancel a running deployment- Specified by:
cancelDeployment
in interfaceStopBuildManager
-
stopAgentNicely
Description copied from interface:StopBuildManager
Will tell an agent to stop after it's finished the current build- Specified by:
stopAgentNicely
in interfaceStopBuildManager
-
setBuildQueueManager
-
setAgentCommandSender
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) -
setPlanExecutionManager
-
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler) -
setBuildLoggerManager
-
setAuthenticationContext
-