@Internal
public interface BuildContextFactory
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)
Deprecated.
since 5.0 use com.atlassian.bamboo.v2.build.BuildRepositoryChangesImpl constructor instead
|
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 Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(@NotNull ImmutableChain chain, @NotNull BuildContext parentBuildContext)
chain
- parentBuildContext
- - buildContext of the parent chain executionJob
PlanKey
s to their BuildContext
boolean canRestartOrContinueBuild(@NotNull ImmutableChain chain, @NotNull ChainResultsSummary chainResultsSummary, @NotNull PlanExecutionConfig planExecutionConfig)
@NotNull Collection<BuildContext> createBuildContextsForRestartedOrContinuedBuild(@NotNull ImmutableChain chain, @NotNull ChainResultsSummary chainResultsSummary, @NotNull BuildContext parentBuildContext, @NotNull PlanExecutionConfig planExecutionConfig)
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, etcchainResultsSummary
- - existing ChainResultsSummary
for build to continue/restartparentBuildContext
- - Chain
BuildContext
planExecutionConfig
- - controls build continuation or restartBuildContext
to execute@NotNull Map<ImmutableChainStage,Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(@NotNull ImmutableChain chain, @Nullable ChainResultsSummary chainResultsSummary, @NotNull BuildContext parentBuildContext, @NotNull PlanExecutionConfig planExecutionConfig)
@NotNull @Deprecated BuildRepositoryChanges cloneBuildRepositoryChanges(@NotNull BuildRepositoryChanges buildRepositoryChanges)
buildRepositoryChanges
- BuildRepositoryChanges
@NotNull BuildRepositoryChanges buildChangesUnion(@NotNull BuildRepositoryChanges a, @NotNull BuildRepositoryChanges b)
void updateBuildContextWithChanges(BuildContext contextToUpdate, BuildChanges newBuildChanges)
contextToUpdate
- newBuildChanges
- Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.