public class BuildContextFactoryImpl extends Object implements BuildContextFactory
Constructor and Description |
---|
BuildContextFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
BuildRepositoryChanges |
buildChangesUnion(BuildRepositoryChanges a,
BuildRepositoryChanges b) |
boolean |
canRestartOrContinueBuild(ImmutableChain chain,
ChainResultsSummary chainResultsSummary,
PlanExecutionConfig planExecutionConfig)
Checks if build can be continued from a manual stage or restarted, that is, if there are any stages to be run
and if all the jobs in those stages still exist.
|
BuildRepositoryChanges |
cloneBuildRepositoryChanges(BuildRepositoryChanges buildRepositoryChanges)
This is not a real clone() operation
|
Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> |
createBuildContextsForJobs(ImmutableChain chain,
BuildContext parentBuildContext)
|
Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> |
createBuildContextsForJobs(ImmutableChain chain,
ChainResultsSummary chainResultsSummary,
BuildContext parentBuildContext,
PlanExecutionConfig planExecutionConfig)
|
Collection<BuildContext> |
createBuildContextsForRestartedOrContinuedBuild(ImmutableChain chain,
ChainResultsSummary chainResultsSummary,
BuildContext parentBuildContext,
PlanExecutionConfig planExecutionConfig)
Creates a
BuildContext for each not built or failed Job in the Chain that was partially executed or is restarted
for example with "continue manual stage" action, or "re-run failed jobs" action, etc |
void |
updateBuildContextWithChanges(BuildContext contextToUpdate,
BuildChanges newBuildChanges)
Updates the build context with build changes
|
@NotNull public Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(@NotNull ImmutableChain chain, @NotNull BuildContext parentBuildContext)
BuildContextFactory
createBuildContextsForJobs
in interface BuildContextFactory
parentBuildContext
- - buildContext of the parent chain executionJob
PlanKey
s to their BuildContext
public void updateBuildContextWithChanges(BuildContext contextToUpdate, BuildChanges newBuildChanges)
BuildContextFactory
updateBuildContextWithChanges
in interface BuildContextFactory
public boolean canRestartOrContinueBuild(@NotNull ImmutableChain chain, @NotNull ChainResultsSummary chainResultsSummary, @NotNull PlanExecutionConfig planExecutionConfig)
BuildContextFactory
canRestartOrContinueBuild
in interface BuildContextFactory
@NotNull public Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(@NotNull ImmutableChain chain, @NotNull ChainResultsSummary chainResultsSummary, @NotNull BuildContext parentBuildContext, @NotNull PlanExecutionConfig planExecutionConfig)
BuildContextFactory
createBuildContextsForJobs
in interface BuildContextFactory
@NotNull public Collection<BuildContext> createBuildContextsForRestartedOrContinuedBuild(@NotNull ImmutableChain chain, @NotNull ChainResultsSummary chainResultsSummary, @NotNull BuildContext parentBuildContext, @NotNull PlanExecutionConfig planExecutionConfig)
BuildContextFactory
BuildContext
for each not built or failed Job
in the Chain
that was partially executed or is restarted
for example with "continue manual stage" action, or "re-run failed jobs" action, etccreateBuildContextsForRestartedOrContinuedBuild
in interface BuildContextFactory
chainResultsSummary
- - existing ChainResultsSummary
for build to continue/restartparentBuildContext
- - Chain
BuildContext
planExecutionConfig
- - controls build continuation or restartBuildContext
to execute@NotNull public BuildRepositoryChanges cloneBuildRepositoryChanges(@NotNull BuildRepositoryChanges buildRepositoryChanges)
BuildContextFactory
cloneBuildRepositoryChanges
in interface BuildContextFactory
BuildRepositoryChanges
@NotNull public BuildRepositoryChanges buildChangesUnion(@NotNull BuildRepositoryChanges a, @NotNull BuildRepositoryChanges b)
buildChangesUnion
in interface BuildContextFactory
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.