Package com.atlassian.bamboo.build
Interface BuildDefinitionManager
- All Known Implementing Classes:
DefaultBuildDefinitionManager,DefaultBuildDefinitionManagerTx
@ThreadSafe
public interface BuildDefinitionManager
A manager for stateful
BuildDefinition.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescription@NotNull BuildDefinitiongetBuildDefinition(@NotNull Plan plan) @NotNull BuildDefinitiongetBuildDefinition(@NotNull PlanKey planKey) Returns a stateful version the build definition for thePlan.@NotNull BuildDefinitiongetBuildDefinition(@NotNull Pair<EnrichedPlanDto, ImmutablePlan> dtoWithImmutableEntity, @Nullable ImmutablePlan masterImmutablePlan) getUnmergedBuildDefinition(@NotNull Plan plan) Returns a stateful version the build definition for thePlan.getUnmergedBuildDefinition(@NotNull PlanKey planKey) Returns a stateful version the build definition for thePlan.voidsavePlanAndDefinition(Plan plan) Deprecated.voidsavePlanAndDefinition(Plan plan, BuildDefinition buildDefinition) Convert and save the build definition.voidsavePlanAndDefinition(Plan plan, BuildDefinition buildDefinition, boolean withQuartzJobsRestart) Convert and save the build definition.voidsavePlanAndDefinition(Plan plan, BuildConfiguration buildConfiguration) Saves thePlanand theBuildConfiguration
-
Method Details
-
getBuildDefinition
Returns a stateful version the build definition for thePlan. This means that when you set various flags on it, the flags won't be lost (unless you updated yourBuildDefinition. In case of PlanBranches, it will return BuildDefinition merged with Master plan.- Parameters:
planKey-- Returns:
- A populated
BuildDefinitionobject.
-
getUnmergedBuildDefinition
Returns a stateful version the build definition for thePlan. This means that when you set various flags on it, the flags won't be lost (unless you updated yourBuildDefinition. In case of PlanBranches, it will return BuildDefinition specific to a given PlanBranch.- Parameters:
plan-- Returns:
- A populated
BuildDefinitionobject. - Since:
- 9.3
-
getUnmergedBuildDefinition
Returns a stateful version the build definition for thePlan. This means that when you set various flags on it, the flags won't be lost (unless you updated yourBuildDefinition. In case of PlanBranches, it will return BuildDefinition specific to a given PlanBranch. Note: for better performance, consider usinggetUnmergedBuildDefinition(Plan)instead.- Parameters:
planKey-- Returns:
- A populated
BuildDefinitionobject.
-
savePlanAndDefinition
Deprecated.Saves thePlanwhile polling jobs are stopped.- Parameters:
plan-
-
savePlanAndDefinition
Saves thePlanand theBuildConfiguration- Parameters:
plan-buildConfiguration-
-
savePlanAndDefinition
Convert and save the build definition.- Parameters:
plan-buildDefinition-
-
savePlanAndDefinition
void savePlanAndDefinition(Plan plan, BuildDefinition buildDefinition, boolean withQuartzJobsRestart) Convert and save the build definition. To be used during plan creation only.- Parameters:
plan-buildDefinition-withQuartzJobsRestart- indicates if relevant polling jobs should be reinitialised- Since:
- 4.3
-
getBuildDefinition
-
getBuildDefinition
@Internal @NotNull @NotNull BuildDefinition getBuildDefinition(@NotNull @NotNull Pair<EnrichedPlanDto, ImmutablePlan> dtoWithImmutableEntity, @Nullable @Nullable ImmutablePlan masterImmutablePlan)
-
PlanManager.savePlanWithSchedulesStopped(com.atlassian.bamboo.plan.Plan)