public class BuildContextFactoryImpl extends Object implements BuildContextFactory
Constructor and Description |
---|
BuildContextFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
BuildRepositoryChanges |
buildChangesUnion(BuildRepositoryChanges a,
BuildRepositoryChanges b) |
BuildRepositoryChanges |
cloneBuildRepositoryChanges(BuildRepositoryChanges buildRepositoryChanges)
This is not a real clone() operation
|
Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> |
createBuildContextsForJobs(ImmutableChain chain,
BuildContext parentBuildContext)
|
Collection<BuildContext> |
createBuildContextsForRestartedOrRerunBuild(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 "re-run this build" action or 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
@NotNull public Collection<BuildContext> createBuildContextsForRestartedOrRerunBuild(@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 "re-run this build" action or with "continue manual stage" action, or "re-run failed jobs" action, etccreateBuildContextsForRestartedOrRerunBuild
in interface BuildContextFactory
chainResultsSummary
- - existing ChainResultsSummary
for build to continue/restart/rerunparentBuildContext
- - 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 © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.