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 Object
- implements DependencyBlockingManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDependencyBlockingManager
public DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder,
ImmutablePlanCacheService immutablePlanCacheService,
ChangeDetectionManager changeDetectionManager,
PlanExecutionManager planExecutionManager,
TriggerManager triggerManager,
ErrorUpdateHandler errorUpdateHandler,
BuildNumberGeneratorService buildNumberGenerator,
ChainExecutionManager chainExecutionManager,
BuildContextBuilderFactory buildContextBuilderFactory)
isBlockedFromBuilding
public boolean isBlockedFromBuilding(PlanKey planKey)
- 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(PlanKey planKey,
@Nullable
Set<? extends ImmutablePlan> 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 © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.