com.atlassian.bamboo.container.startup
Class PendingBuildResultsCleanupImpl

java.lang.Object
  extended by com.atlassian.bamboo.container.startup.PendingBuildResultsCleanupImpl
All Implemented Interfaces:
PendingBuildResultsCleanup

public class PendingBuildResultsCleanupImpl
extends java.lang.Object
implements PendingBuildResultsCleanup

Helper class performing cleanup of pending and InProgress builds. Used at start up of Bamboo Server and when finishing PENDING and IN_PROGRESS build (e.g. due to agent going offline)


Constructor Summary
PendingBuildResultsCleanupImpl(PlanManager planManager, BuildResultsSummaryManager buildResultsSummaryManager)
           
 
Method Summary
 void cleanUp()
          Performs cleanup of PENDING builds at Bamboo start-up.
 void singleResultCleanUp(ResultsSummary buildResult)
          Performs cleanup of single PENDING build.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PendingBuildResultsCleanupImpl

public PendingBuildResultsCleanupImpl(PlanManager planManager,
                                      BuildResultsSummaryManager buildResultsSummaryManager)
Method Detail

cleanUp

public void cleanUp()
Description copied from interface: PendingBuildResultsCleanup
Performs cleanup of PENDING builds at Bamboo start-up. Converts all PENDING builds into NOT_BUILD if they are part of a chain. Deletes them otherwise.

Specified by:
cleanUp in interface PendingBuildResultsCleanup

singleResultCleanUp

public void singleResultCleanUp(@NotNull
                                ResultsSummary buildResult)
Description copied from interface: PendingBuildResultsCleanup
Performs cleanup of single PENDING build. Converts it into NOT_BUILD. If it is not part of a chain, reverts lastVcs revision for plan if not subsequent build was done.

Specified by:
singleResultCleanUp in interface PendingBuildResultsCleanup


Copyright © 2011 Atlassian. All Rights Reserved.