@ThreadSafe public class DefaultBuildDefinitionManager extends Object implements BuildDefinitionManager
BuildDefinitionManager.BuildDefinitionNotFoundException
Constructor and Description |
---|
DefaultBuildDefinitionManager(BuildDefinitionManager target,
PlanScheduler planScheduler) |
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)
Saves the
Plan while polling jobs are stopped. |
void |
savePlanAndDefinition(Plan plan,
BuildConfiguration newBuildConfiguration)
Saves the
Plan and the BuildConfiguration |
void |
savePlanAndDefinition(Plan plan,
BuildDefinition newBuildDefinition)
Convert and save the build definition.
|
void |
savePlanAndDefinition(Plan plan,
BuildDefinition newBuildDefinition,
boolean withQuartzJobsRestart)
Convert and save the build definition.
|
public DefaultBuildDefinitionManager(@NotNull BuildDefinitionManager target, @NotNull PlanScheduler planScheduler)
@NotNull public BuildDefinition getUnmergedBuildDefinition(@NotNull PlanKey planKey)
BuildDefinitionManager
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.getUnmergedBuildDefinition
in interface BuildDefinitionManager
BuildDefinition
object.@NotNull public BuildDefinition getBuildDefinition(@NotNull PlanKey planKey)
BuildDefinitionManager
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.getBuildDefinition
in interface BuildDefinitionManager
BuildDefinition
object.@NotNull public BuildDefinition getBuildDefinition(@NotNull Plan plan)
getBuildDefinition
in interface BuildDefinitionManager
public void savePlanAndDefinition(Plan plan)
BuildDefinitionManager
Plan
while polling jobs are stopped.savePlanAndDefinition
in interface BuildDefinitionManager
public void savePlanAndDefinition(Plan plan, BuildConfiguration newBuildConfiguration)
BuildDefinitionManager
Plan
and the BuildConfiguration
savePlanAndDefinition
in interface BuildDefinitionManager
public void savePlanAndDefinition(Plan plan, BuildDefinition newBuildDefinition)
BuildDefinitionManager
savePlanAndDefinition
in interface BuildDefinitionManager
public void savePlanAndDefinition(Plan plan, BuildDefinition newBuildDefinition, boolean withQuartzJobsRestart)
BuildDefinitionManager
savePlanAndDefinition
in interface BuildDefinitionManager
withQuartzJobsRestart
- indicates if relevant polling jobs should be reinitialisedCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.