Class DefaultDependencyBlockingManager
java.lang.Object
com.atlassian.bamboo.v2.build.trigger.DefaultDependencyBlockingManager
- All Implemented Interfaces:
DependencyBlockingManager
-
Constructor Summary
ConstructorDescriptionDefaultDependencyBlockingManager
(DependencyTreeBuilder dependencyTreeBuilder, ImmutablePlanCacheService immutablePlanCacheService, ChangeDetectionManager changeDetectionManager, PlanExecutionManager planExecutionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildNumberGeneratorService buildNumberGenerator, ChainExecutionManager chainExecutionManager, BuildContextBuilderFactory buildContextBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isBlockedFromBuilding
(PlanKey planKey) Checks if build should be blocked, and executes any parent builds if required.boolean
isBlockedFromBuilding
(PlanKey planKey, @Nullable Set<? extends ImmutablePlan> plansBeingTriggered) Checks if build should be blocked, and executes any parent builds if required.
-
Constructor Details
-
DefaultDependencyBlockingManager
public DefaultDependencyBlockingManager(DependencyTreeBuilder dependencyTreeBuilder, ImmutablePlanCacheService immutablePlanCacheService, ChangeDetectionManager changeDetectionManager, PlanExecutionManager planExecutionManager, TriggerManager triggerManager, ErrorUpdateHandler errorUpdateHandler, BuildNumberGeneratorService buildNumberGenerator, ChainExecutionManager chainExecutionManager, BuildContextBuilderFactory buildContextBuilderFactory)
-
-
Method Details
-
isBlockedFromBuilding
Description copied from interface:DependencyBlockingManager
Checks if build should be blocked, and executes any parent builds if required.- Specified by:
isBlockedFromBuilding
in interfaceDependencyBlockingManager
- Returns:
- false if build has not been blocked, or if blocking is disabled. Otherwise true.
-
isBlockedFromBuilding
public boolean isBlockedFromBuilding(PlanKey planKey, @Nullable @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 interfaceDependencyBlockingManager
- Returns:
- false if build has not been blocked, or if blocking is disabled. Otherwise true.
-