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
ConstructorDescriptionChangeDetectionListenerAction
(@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
Modifier and TypeMethodDescriptionActual creation of aBuildContext
.void
setBuildContextBuilderFactory
(BuildContextBuilderFactory buildContextBuilderFactory) void
setBuildLoggerManager
(BuildLoggerManager buildLoggerManager) void
setBuildNumberGeneratorService
(BuildNumberGeneratorService buildNumberGeneratorService) void
setChangeDetectionManager
(ChangeDetectionManager changeDetectionManager) void
setDependencyBlockingManager
(DependencyBlockingManager dependencyBlockingManager) void
setErrorHandler
(ErrorHandler errorHandler) void
setEventPublisher
(com.atlassian.event.api.EventPublisher eventPublisher) void
setImmutablePlanCacheService
(ImmutablePlanCacheService immutablePlanCacheService) void
setPlanVcsRevisionHistoryService
(PlanVcsRevisionHistoryService planVcsRevisionHistoryService) void
setTextProvider
(com.opensymphony.xwork2.TextProvider textProvider) void
setTriggerManager
(TriggerManager triggerManager) io.atlassian.fugue.Pair<Boolean,
ErrorCollection> testIfBuildShouldStart
(PlanExecutionLaunchControl.ReleaseLocksActions releaseLocksActions) Method that should test if chain should be started.toString()
-
Constructor Details
-
ChangeDetectionListenerAction
-
ChangeDetectionListenerAction
-
-
Method Details
-
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
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
- Specified by:
getTriggerConditionsConfiguration
in interfaceTriggerConditionsAwareBuildDetectionAction
-
setTriggerManager
-
setErrorHandler
-
setChangeDetectionManager
-
setDependencyBlockingManager
-
setBuildLoggerManager
-
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) -
setBuildNumberGeneratorService
-
setPlanVcsRevisionHistoryService
public void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService) -
setImmutablePlanCacheService
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) -
setBuildContextBuilderFactory
-
toString
-