com.atlassian.bamboo.chains
Interface BuildContextFactory

All Known Implementing Classes:
BuildContextFactoryImpl

public interface BuildContextFactory

Create a BuildContext given the ChainStage and Chain


Method Summary
 BuildRepositoryChanges buildChangesUnion(BuildRepositoryChanges a, BuildRepositoryChanges b)
           
 BuildRepositoryChanges cloneBuildRepositoryChanges(BuildRepositoryChanges buildRepositoryChanges)
          This is not a real clone() operation
 java.util.Collection<BuildContext> createBuildContextsForContinuedBuild(ChainResultsSummary chainResultsSummary, BuildContext parentBuildContext, PlanExecutionConfig planExecutionConfig)
          Creates a BuildContext for each not built or failed Job in the Chain that was partially executed or can be restarted
 java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(ImmutableChain chain, BuildContext parentBuildContext)
          Creates a BuildContext for each Job in the Chain
 

Method Detail

createBuildContextsForJobs

@NotNull
java.util.Map<ImmutableChainStage,java.util.Map<ImmutableJob,BuildContext>> createBuildContextsForJobs(@NotNull
                                                                                                               ImmutableChain chain,
                                                                                                               @NotNull
                                                                                                               BuildContext parentBuildContext)
                                                                                                       throws RepositoryException
Creates a BuildContext for each Job in the Chain

Parameters:
chain -
parentBuildContext - - buildContext of the parent chain execution
Returns:
map of Job PlanKeys to their BuildContext
Throws:
RepositoryException - if change detection fails

createBuildContextsForContinuedBuild

@NotNull
java.util.Collection<BuildContext> createBuildContextsForContinuedBuild(@NotNull
                                                                                ChainResultsSummary chainResultsSummary,
                                                                                @NotNull
                                                                                BuildContext parentBuildContext,
                                                                                @NotNull
                                                                                PlanExecutionConfig planExecutionConfig)
                                                                        throws RepositoryException
Creates a BuildContext for each not built or failed Job in the Chain that was partially executed or can be restarted

Parameters:
chainResultsSummary - - existing ChainResultsSummary for build to continue/restart
parentBuildContext - - Chain BuildContext
planExecutionConfig - - controls build continuation or restart
Returns:
collection of BuildContext to execute
Throws:
RepositoryException - if change detection fails

cloneBuildRepositoryChanges

@NotNull
BuildRepositoryChanges cloneBuildRepositoryChanges(@NotNull
                                                           BuildRepositoryChanges buildRepositoryChanges)
This is not a real clone() operation

Parameters:
buildRepositoryChanges -
Returns:
cloned BuildRepositoryChanges

buildChangesUnion

@NotNull
BuildRepositoryChanges buildChangesUnion(@NotNull
                                                 BuildRepositoryChanges a,
                                                 @NotNull
                                                 BuildRepositoryChanges b)


Copyright © 2012 Atlassian. All Rights Reserved.