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 BuildChangesbuildChangesprotected BuildContextBuilderFactorybuildContextBuilderFactoryprotected BuildLoggerManagerbuildLoggerManagerprotected BuildNumberGeneratorServicebuildNumberGeneratorServiceprotected ImmutableChainchainprotected ChangeDetectionManagerchangeDetectionManagerprotected BuildContextcompletedBuildContextprotected StringcompletedBuildResultKeyprotected CustomVariableContextcustomVariableContextprotected ErrorUpdateHandlererrorUpdateHandlerstatic StringPARENT_BUILD_KEYprotected ImmutableChainparentChainprotected PlanKeyplanKeyprotected PlanVcsRevisionHistoryServiceplanVcsRevisionHistoryServiceprotected TriggerManagertriggerManagerprotected VcsRepositoryManagervcsRepositoryManager
-
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 voidaddDependencyInformation(Map<String,String> customBuildData, Map<String,String> oldCustomData)@NotNull BuildDetectionResultgenerateResultWithoutChanges()Creates a result with a new number without doing change detection@Nullable BuildChangesperformDelayedChangeDetection(BuildContext buildContext, PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions)Performs a change detectionprotected @Nullable BuildContextprepareBuildContext(@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:UnconditionalBuildDetectionActionCreates a result with a new number without doing change detection- Specified by:
generateResultWithoutChangesin interfaceUnconditionalBuildDetectionAction- Returns:
-
performDelayedChangeDetection
@Nullable public @Nullable BuildChanges performDelayedChangeDetection(BuildContext buildContext, @NotNull PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions) throws RepositoryException
Description copied from interface:UnconditionalBuildDetectionActionPerforms a change detection- Specified by:
performDelayedChangeDetectionin interfaceUnconditionalBuildDetectionActionreleaseLocksActions- 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)
-
-