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