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 Classes Modifier and Type Class Description static classDependenciesConfiguration.DependencyBlockingStrategy
-
Constructor Summary
Constructors Constructor Description DependenciesConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependenciesConfigurationblockingStrategy(@NotNull DependenciesConfiguration.DependencyBlockingStrategy blockingStrategy)Selects dependency blocking strategy.protected DependenciesConfigurationPropertiesbuild()DependenciesConfigurationenabledForBranches(boolean enabledForBranches)Enables/disables dependencies support for plan branches.DependenciesConfigurationrequireAllStagesPassing(boolean requireAllStagesPassing)Controls whether it is required for all stages to be complete before triggering dependant plans.
-
-
-
Method Detail
-
enabledForBranches
public DependenciesConfiguration enabledForBranches(boolean enabledForBranches)
Enables/disables dependencies support for plan branches. Feature is off by default.
-
requireAllStagesPassing
public DependenciesConfiguration requireAllStagesPassing(boolean 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
protected DependenciesConfigurationProperties build() throws PropertiesValidationException
- Specified by:
buildin classEntityPropertiesBuilder<DependenciesConfigurationProperties>- Throws:
PropertiesValidationException
-
-