@ThreadSafe public interface BuildDefinitionManager
BuildDefinition.| Modifier and Type | Interface and Description |
|---|---|
static class |
BuildDefinitionManager.BuildDefinitionNotFoundException |
| Modifier and Type | Method and Description |
|---|---|
@NotNull BuildDefinition |
getBuildDefinition(@NotNull Pair<EnrichedPlanDto,ImmutablePlan> dtoWithImmutableEntity,
@Nullable Pair<EnrichedPlanDto,ImmutablePlan> masterDtoWithImmutableEntity) |
@NotNull BuildDefinition |
getBuildDefinition(@NotNull Plan plan) |
@NotNull BuildDefinition |
getBuildDefinition(@NotNull PlanKey planKey)
Returns a stateful version the build definition for the
Plan. |
BuildDefinition |
getUnmergedBuildDefinition(@NotNull PlanKey planKey)
Returns a stateful version the build definition for the
Plan. |
void |
savePlanAndDefinition(Plan plan)
Deprecated.
|
void |
savePlanAndDefinition(Plan plan,
BuildConfiguration buildConfiguration)
Saves the
Plan and the BuildConfiguration |
void |
savePlanAndDefinition(Plan plan,
BuildDefinition buildDefinition)
Convert and save the build definition.
|
void |
savePlanAndDefinition(Plan plan,
BuildDefinition buildDefinition,
boolean withQuartzJobsRestart)
Convert and save the build definition.
|
@NotNull @NotNull BuildDefinition getBuildDefinition(@NotNull @NotNull PlanKey planKey)
Plan. This means that when you set various flags
on it, the flags won't be lost (unless you updated your BuildDefinition.
In case of PlanBranches, it will return BuildDefinition merged with Master plan.planKey - BuildDefinition object.BuildDefinition getUnmergedBuildDefinition(@NotNull @NotNull PlanKey planKey)
Plan. This means that when you set various flags
on it, the flags won't be lost (unless you updated your BuildDefinition.
In case of PlanBranches, it will return BuildDefinition specific to a given PlanBranch.planKey - BuildDefinition object.@Deprecated void savePlanAndDefinition(Plan plan)
PlanManager.savePlanWithSchedulesStopped(com.atlassian.bamboo.plan.Plan)Plan while polling jobs are stopped.plan - void savePlanAndDefinition(Plan plan, BuildConfiguration buildConfiguration)
Plan and the BuildConfigurationplan - buildConfiguration - void savePlanAndDefinition(Plan plan, BuildDefinition buildDefinition)
plan - buildDefinition - void savePlanAndDefinition(Plan plan, BuildDefinition buildDefinition, boolean withQuartzJobsRestart)
plan - buildDefinition - withQuartzJobsRestart - indicates if relevant polling jobs should be reinitialised@NotNull @NotNull BuildDefinition getBuildDefinition(@NotNull @NotNull Plan plan)
@NotNull @NotNull BuildDefinition getBuildDefinition(@NotNull @NotNull Pair<EnrichedPlanDto,ImmutablePlan> dtoWithImmutableEntity, @Nullable @Nullable Pair<EnrichedPlanDto,ImmutablePlan> masterDtoWithImmutableEntity)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.