@ThreadSafe public interface BuildDefinitionManager
BuildDefinition
.Modifier and Type | Interface and Description |
---|---|
static class |
BuildDefinitionManager.BuildDefinitionNotFoundException |
Modifier and Type | Method and Description |
---|---|
BuildDefinition |
getBuildDefinition(Plan plan) |
BuildDefinition |
getBuildDefinition(PlanKey planKey)
Returns a stateful version the build definition for the
Plan . |
BuildDefinition |
getUnmergedBuildDefinition(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 BuildDefinition getBuildDefinition(@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 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 BuildConfiguration
plan
- 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 BuildDefinition getBuildDefinition(@NotNull Plan plan)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.