com.atlassian.bamboo.build
Interface StopBuildManager

All Known Implementing Classes:
DefaultStopBuildManager

public interface StopBuildManager


Method Summary
 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, java.lang.Long deploymentResultId, java.lang.Long agentId)
          Cancel a running deployment
 void stopAgentNicely(BuildAgent buildAgent)
          Will tell an agent to stop after it's finished the current build
 

Method Detail

cancelBuild

void cancelBuild(@NotNull
                 PlanResultKey planResultKey,
                 boolean abandonResult)
Cancel a running build optionally abandoning the result

Parameters:
planResultKey -
abandonResult -
Throws:
java.lang.InterruptedException

cancelDeployment

void cancelDeployment(@NotNull
                      ResultKey resultKey,
                      @NotNull
                      java.lang.Long deploymentResultId,
                      java.lang.Long agentId)
Cancel a running deployment

Parameters:
resultKey -
deploymentResultId -
agentId -

stopAgentNicely

void stopAgentNicely(@NotNull
                     BuildAgent buildAgent)
Will tell an agent to stop after it's finished the current build

Parameters:
buildAgent -

cancelAllBuilds

void cancelAllBuilds(@NotNull
                     PlanKey planKey,
                     boolean abandonResult)
                     throws java.lang.InterruptedException
Will stop all builds running for plan identified by PlanKey

Parameters:
planKey -
abandonResult -
Throws:
java.lang.InterruptedException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.