public class DefaultStopBuildManager extends Object implements StopBuildManager
Constructor and Description |
---|
DefaultStopBuildManager() |
Modifier and Type | Method and Description |
---|---|
void |
cancelAllBuilds(PlanKey planKey,
boolean abandonResult)
Will stop all builds running for plan identified by
PlanKey |
void |
cancelBuild(PlanResultKey planResultKey,
boolean abandonResult)
Cancel a running build optionally abandoning the result
|
void |
cancelDeployment(ResultKey resultKey,
Long deploymentResultId,
Long agentId)
Cancel a running deployment
|
void |
onVerifyAgentBuildingStatus(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(BuildAgent buildAgent)
Will tell an agent to stop after it's finished the current build
|
public void cancelAllBuilds(@NotNull PlanKey planKey, boolean abandonResult)
StopBuildManager
PlanKey
cancelAllBuilds
in interface StopBuildManager
public void cancelBuild(@NotNull PlanResultKey planResultKey, boolean abandonResult)
StopBuildManager
cancelBuild
in interface StopBuildManager
@EventListener public void onVerifyAgentBuildingStatus(@NotNull VerifyAgentBuildingStatusEvent event)
public void cancelDeployment(@NotNull ResultKey resultKey, @NotNull Long deploymentResultId, @Nullable Long agentId)
StopBuildManager
cancelDeployment
in interface StopBuildManager
public void stopAgentNicely(@NotNull BuildAgent buildAgent)
StopBuildManager
stopAgentNicely
in interface StopBuildManager
public void setBuildQueueManager(BuildQueueManager buildQueueManager)
public void setAgentCommandSender(AgentCommandSender agentCommandSender)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
public void setScheduler(org.quartz.Scheduler scheduler)
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
public void setAuthenticationContext(BambooAuthenticationContext authenticationContext)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.