Class DependenciesConfiguration
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<DependenciesConfigurationProperties>
com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration
public class DependenciesConfiguration
extends EntityPropertiesBuilder<DependenciesConfigurationProperties>
Represents dependencies configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockingStrategy(@NotNull DependenciesConfiguration.DependencyBlockingStrategy blockingStrategy) Selects dependency blocking strategy.protected DependenciesConfigurationPropertiesbuild()enabledForBranches(boolean enabledForBranches) Enables/disables dependencies support for plan branches.requireAllStagesPassing(boolean requireAllStagesPassing) Controls whether it is required for all stages to be complete before triggering dependant plans.
-
Constructor Details
-
DependenciesConfiguration
public DependenciesConfiguration()
-
-
Method Details
-
enabledForBranches
Enables/disables dependencies support for plan branches. Feature is off by default. -
requireAllStagesPassing
Controls whether it is required for all stages to be complete before triggering dependant plans. It is only relevant if plan contains manual stages. Feature is off by default. -
blockingStrategy
public DependenciesConfiguration blockingStrategy(@NotNull @NotNull DependenciesConfiguration.DependencyBlockingStrategy blockingStrategy) throws PropertiesValidationException Selects dependency blocking strategy. Dependency blocking helps preventing from triggering dependant builds too often.Possible values:
- NONE
- No dependency blocking. Dependant builds are triggered whenever this build finishes successfully.
- BLOCK_IF_PARENT_IN_PROGRESS
- Dependant builds are not triggered if another build of this plan is still running.
- BLOCK_IF_PARENT_HAS_CHANGES
- Dependant builds are not triggered if this plan has unbuilt changes.
- Throws:
PropertiesValidationException
-
build
- Specified by:
buildin classEntityPropertiesBuilder<DependenciesConfigurationProperties>- Throws:
PropertiesValidationException
-