@Internal
public interface BuildContextFactory
Modifier and Type | Method and Description |
---|---|
BuildRepositoryChanges |
buildChangesUnion(BuildRepositoryChanges a,
BuildRepositoryChanges b) |
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)
|
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 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
@NotNull Collection<BuildContext> createBuildContextsForRestartedOrRerunBuild(@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 "re-run this build" action or with "continue manual stage" action, or "re-run failed jobs" action, etcchainResultsSummary
- - existing ChainResultsSummary
for build to continue/restart/rerunparentBuildContext
- - Chain
BuildContext
planExecutionConfig
- - controls build continuation or restartBuildContext
to execute@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 © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.