Package com.atlassian.bamboo.build
Class DefaultStopBuildManager
java.lang.Object
com.atlassian.bamboo.build.DefaultStopBuildManager
- All Implemented Interfaces:
StopBuildManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelAllBuilds(@NotNull PlanKey planKey, boolean abandonResult) Will stop all builds running for plan identified byPlanKeyvoidcancelBuild(@NotNull PlanResultKey planResultKey, boolean abandonResult) Cancel a running build optionally abandoning the resultvoidcancelDeployment(@NotNull ResultKey resultKey, @NotNull Long deploymentResultId, @Nullable Long agentId) Cancel a running deploymentvoidonCancelCurrentBuildEvent(@NotNull CancelCurrentBuildEvent event) voidonVerifyAgentBuildingStatus(@NotNull VerifyAgentBuildingStatusEvent event) voidsetAgentCommandSender(AgentCommandSender agentCommandSender) voidsetAuthenticationContext(BambooAuthenticationContext authenticationContext) voidsetBuildLoggerManager(BuildLoggerManager buildLoggerManager) voidsetBuildQueueManager(BuildQueueManager buildQueueManager) voidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) voidsetPlanExecutionManager(PlanExecutionManager planExecutionManager) voidsetScheduler(org.quartz.Scheduler scheduler) voidstopAgentNicely(@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:StopBuildManagerWill stop all builds running for plan identified byPlanKey- Specified by:
cancelAllBuildsin interfaceStopBuildManager
-
cancelBuild
Description copied from interface:StopBuildManagerCancel a running build optionally abandoning the result- Specified by:
cancelBuildin 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:StopBuildManagerCancel a running deployment- Specified by:
cancelDeploymentin interfaceStopBuildManager
-
stopAgentNicely
Description copied from interface:StopBuildManagerWill tell an agent to stop after it's finished the current build- Specified by:
stopAgentNicelyin interfaceStopBuildManager
-
setBuildQueueManager
-
setAgentCommandSender
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) -
setPlanExecutionManager
-
setScheduler
public void setScheduler(org.quartz.Scheduler scheduler) -
setBuildLoggerManager
-
setAuthenticationContext
-