Package com.atlassian.bamboo.build
Interface StopBuildManager
-
- All Known Implementing Classes:
DefaultStopBuildManager
public interface StopBuildManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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, Long agentId)
Cancel a running deploymentvoid
stopAgentNicely(@NotNull BuildAgent buildAgent)
Will tell an agent to stop after it's finished the current build
-
-
-
Method Detail
-
cancelBuild
void cancelBuild(@NotNull @NotNull PlanResultKey planResultKey, boolean abandonResult)
Cancel a running build optionally abandoning the result- Parameters:
planResultKey
-abandonResult
-- Throws:
InterruptedException
-
cancelDeployment
void cancelDeployment(@NotNull @NotNull ResultKey resultKey, @NotNull @NotNull Long deploymentResultId, Long agentId)
Cancel a running deployment- Parameters:
resultKey
-deploymentResultId
-agentId
-
-
stopAgentNicely
void stopAgentNicely(@NotNull @NotNull BuildAgent buildAgent)
Will tell an agent to stop after it's finished the current build- Parameters:
buildAgent
-
-
cancelAllBuilds
void cancelAllBuilds(@NotNull @NotNull PlanKey planKey, boolean abandonResult) throws InterruptedException
Will stop all builds running for plan identified byPlanKey
- Parameters:
planKey
-abandonResult
-- Throws:
InterruptedException
-
-