Package com.atlassian.bamboo.v2.trigger
Class ChangeDetectionListenerAction
- java.lang.Object
-
- com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction
-
- All Implemented Interfaces:
BuildDetectionAction
,ConditionalBuildDetectionAction
,TriggerConditionsAwareBuildDetectionAction
public class ChangeDetectionListenerAction extends Object implements TriggerConditionsAwareBuildDetectionAction, ConditionalBuildDetectionAction
-
-
Constructor Summary
Constructors Constructor Description ChangeDetectionListenerAction(@NotNull PlanKey planKey, @NotNull Set<Long> triggeringRepositories, @NotNull Map<String,String> triggerConditionsConfiguration)
ChangeDetectionListenerAction(PlanKey planKey, @NotNull Set<Long> triggeringRepositories, @NotNull Map<String,String> triggerConditionsConfiguration, boolean logIfNoChanges)
-
Method Summary
-
-
-
Method Detail
-
testIfBuildShouldStart
public io.atlassian.fugue.Pair<Boolean,ErrorCollection> testIfBuildShouldStart(@NotNull PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions)
Description copied from interface:ConditionalBuildDetectionAction
Method that should test if chain should be started. It's OK for this method to take some time. Example implementation is VCS change detection. The method should not produceBuildContext
(even though BuildDetectionResult has such field) but it should perform all time consuming data gathering required to do so in subsequent call toConditionalBuildDetectionAction.createBuildContext()
- Specified by:
testIfBuildShouldStart
in interfaceConditionalBuildDetectionAction
- Parameters:
releaseLocksActions
- actions used for releasing repositories caches locks
-
createBuildContext
public BuildDetectionResult createBuildContext()
Description copied from interface:ConditionalBuildDetectionAction
Actual creation of aBuildContext
. Should be as fast as possible. If previous call toConditionalBuildDetectionAction.testIfBuildShouldStart(PlanExecutionLaunchControl.ReleaseLocksActions)
decided that the build should start, this method is expected to produceBuildDetectionResult
containing validBuildContext
- Specified by:
createBuildContext
in interfaceConditionalBuildDetectionAction
-
getTriggerConditionsConfiguration
public Map<String,String> getTriggerConditionsConfiguration()
- Specified by:
getTriggerConditionsConfiguration
in interfaceTriggerConditionsAwareBuildDetectionAction
-
setTriggerManager
public void setTriggerManager(TriggerManager triggerManager)
-
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
-
setChangeDetectionManager
public void setChangeDetectionManager(ChangeDetectionManager changeDetectionManager)
-
setDependencyBlockingManager
public void setDependencyBlockingManager(DependencyBlockingManager dependencyBlockingManager)
-
setBuildLoggerManager
public void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
-
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
-
setBuildNumberGeneratorService
public void setBuildNumberGeneratorService(BuildNumberGeneratorService buildNumberGeneratorService)
-
setPlanVcsRevisionHistoryService
public void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
-
setImmutablePlanCacheService
public void setImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService)
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
-
setBuildContextBuilderFactory
public void setBuildContextBuilderFactory(BuildContextBuilderFactory buildContextBuilderFactory)
-
-