Package com.atlassian.bamboo.v2.trigger
Class AbstractDependentDetectionAction
- java.lang.Object
-
- com.atlassian.bamboo.v2.trigger.AbstractDependentDetectionAction
-
- All Implemented Interfaces:
BuildDetectionAction
,UnconditionalBuildDetectionAction
- Direct Known Subclasses:
DependentBuildDetectionAction
public class AbstractDependentDetectionAction extends Object implements UnconditionalBuildDetectionAction
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildChanges
buildChanges
protected BuildContextBuilderFactory
buildContextBuilderFactory
protected BuildLoggerManager
buildLoggerManager
protected BuildNumberGeneratorService
buildNumberGeneratorService
protected ImmutableChain
chain
protected ChangeDetectionManager
changeDetectionManager
protected BuildContext
completedBuildContext
protected String
completedBuildResultKey
protected CustomVariableContext
customVariableContext
protected ErrorUpdateHandler
errorUpdateHandler
static String
PARENT_BUILD_KEY
protected ImmutableChain
parentChain
protected PlanKey
planKey
protected PlanVcsRevisionHistoryService
planVcsRevisionHistoryService
protected TriggerManager
triggerManager
protected VcsRepositoryManager
vcsRepositoryManager
-
Constructor Summary
Constructors Constructor Description AbstractDependentDetectionAction(ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext, ErrorUpdateHandler errorUpdateHandler, TriggerManager triggerManager, ChangeDetectionManager changeDetectionManager, BuildNumberGeneratorService buildNumberGeneratorService, BuildLoggerManager buildLoggerManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, BuildContextBuilderFactory buildContextBuilderFactory, CustomVariableContext customVariableContext, VcsRepositoryManager vcsRepositoryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDependencyInformation(Map<String,String> customBuildData, Map<String,String> oldCustomData)
@NotNull BuildDetectionResult
generateResultWithoutChanges()
Creates a result with a new number without doing change detection@Nullable BuildChanges
performDelayedChangeDetection(BuildContext buildContext, PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions)
Performs a change detectionprotected @Nullable BuildContext
prepareBuildContext(@NotNull ErrorCollection errorCollection)
-
-
-
Field Detail
-
planKey
protected final PlanKey planKey
-
chain
protected final ImmutableChain chain
-
parentChain
protected final ImmutableChain parentChain
-
completedBuildContext
protected final BuildContext completedBuildContext
-
buildLoggerManager
protected final BuildLoggerManager buildLoggerManager
-
completedBuildResultKey
protected final String completedBuildResultKey
-
errorUpdateHandler
protected final ErrorUpdateHandler errorUpdateHandler
-
triggerManager
protected final TriggerManager triggerManager
-
changeDetectionManager
protected final ChangeDetectionManager changeDetectionManager
-
buildNumberGeneratorService
protected final BuildNumberGeneratorService buildNumberGeneratorService
-
planVcsRevisionHistoryService
protected final PlanVcsRevisionHistoryService planVcsRevisionHistoryService
-
buildContextBuilderFactory
protected final BuildContextBuilderFactory buildContextBuilderFactory
-
customVariableContext
protected final CustomVariableContext customVariableContext
-
vcsRepositoryManager
protected final VcsRepositoryManager vcsRepositoryManager
-
buildChanges
protected BuildChanges buildChanges
-
PARENT_BUILD_KEY
public static final String PARENT_BUILD_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractDependentDetectionAction
public AbstractDependentDetectionAction(ImmutableChain chain, ImmutableChain parentChain, BuildContext completedBuildContext, ErrorUpdateHandler errorUpdateHandler, TriggerManager triggerManager, ChangeDetectionManager changeDetectionManager, BuildNumberGeneratorService buildNumberGeneratorService, BuildLoggerManager buildLoggerManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, BuildContextBuilderFactory buildContextBuilderFactory, CustomVariableContext customVariableContext, VcsRepositoryManager vcsRepositoryManager)
-
-
Method Detail
-
generateResultWithoutChanges
@NotNull public @NotNull BuildDetectionResult generateResultWithoutChanges()
Description copied from interface:UnconditionalBuildDetectionAction
Creates a result with a new number without doing change detection- Specified by:
generateResultWithoutChanges
in interfaceUnconditionalBuildDetectionAction
- Returns:
-
performDelayedChangeDetection
@Nullable public @Nullable BuildChanges performDelayedChangeDetection(BuildContext buildContext, @NotNull PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions) throws RepositoryException
Description copied from interface:UnconditionalBuildDetectionAction
Performs a change detection- Specified by:
performDelayedChangeDetection
in interfaceUnconditionalBuildDetectionAction
releaseLocksActions
- actions used for releasing repositories caches locks- Returns:
- Null if and error has occurred.
- Throws:
RepositoryException
-
prepareBuildContext
@Nullable protected @Nullable BuildContext prepareBuildContext(@NotNull @NotNull ErrorCollection errorCollection)
-
-