com.atlassian.bamboo.v2.build.trigger
Class DefaultDependencyBlockingManager
java.lang.Object
com.atlassian.bamboo.v2.build.trigger.DefaultDependencyBlockingManager
- All Implemented Interfaces:
- DependencyBlockingManager
public class DefaultDependencyBlockingManager
- extends java.lang.Object
- implements DependencyBlockingManager
Method Summary |
boolean |
isBlockedFromBuilding(java.lang.String buildKey)
Checks if build should be blocked, and executes any parent builds if required. |
boolean |
isBlockedFromBuilding(java.lang.String buildKey,
java.util.Set<Plan> plansBeingTriggered)
Checks if build should be blocked, and executes any parent builds if required. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDependencyBlockingManager
public DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder,
PlanManager planManager,
ChangeDetectionManager changeDetectionManager,
PlanExecutionManager planExecutionManager,
TriggerReasonManager triggerReasonManager,
ErrorUpdateHandler errorUpdateHandler,
BuildNumberGeneratorService buildNumberGenerator)
isBlockedFromBuilding
public boolean isBlockedFromBuilding(java.lang.String buildKey)
- Description copied from interface:
DependencyBlockingManager
- Checks if build should be blocked, and executes any parent builds if required.
- Specified by:
isBlockedFromBuilding
in interface DependencyBlockingManager
- Returns:
- false if build has not been blocked, or if blocking is disabled. Otherwise true.
isBlockedFromBuilding
public boolean isBlockedFromBuilding(java.lang.String buildKey,
@Nullable
java.util.Set<Plan> plansBeingTriggered)
- Description copied from interface:
DependencyBlockingManager
- Checks if build should be blocked, and executes any parent builds if required.
Takes into account dependent builds that are siblings of the build and checks if the
build should be blocked by them
- Specified by:
isBlockedFromBuilding
in interface DependencyBlockingManager
- Returns:
- false if build has not been blocked, or if blocking is disabled. Otherwise true.
Copyright © 2010 Atlassian. All Rights Reserved.