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
ConstructorsConstructorDescriptionChangeDetectionListenerAction(@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.voidsetBuildContextBuilderFactory(BuildContextBuilderFactory buildContextBuilderFactory) voidsetBuildLoggerManager(BuildLoggerManager buildLoggerManager) voidsetBuildNumberGeneratorService(BuildNumberGeneratorService buildNumberGeneratorService) voidsetChangeDetectionManager(ChangeDetectionManager changeDetectionManager) voidsetDependencyBlockingManager(DependencyBlockingManager dependencyBlockingManager) voidsetErrorHandler(ErrorHandler errorHandler) voidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) voidsetImmutablePlanCacheService(ImmutablePlanCacheService immutablePlanCacheService) voidsetPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService) voidsetTextProvider(org.apache.struts2.text.TextProvider textProvider) voidsetTriggerManager(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:ConditionalBuildDetectionActionMethod 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:
testIfBuildShouldStartin interfaceConditionalBuildDetectionAction- Parameters:
releaseLocksActions- actions used for releasing repositories caches locks
-
createBuildContext
Description copied from interface:ConditionalBuildDetectionActionActual 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 produceBuildDetectionResultcontaining validBuildContext- Specified by:
createBuildContextin interfaceConditionalBuildDetectionAction
-
getTriggerConditionsConfiguration
- Specified by:
getTriggerConditionsConfigurationin interfaceTriggerConditionsAwareBuildDetectionAction
-
setTriggerManager
-
setErrorHandler
-
setChangeDetectionManager
-
setDependencyBlockingManager
-
setBuildLoggerManager
-
setTextProvider
public void setTextProvider(org.apache.struts2.text.TextProvider textProvider) -
setBuildNumberGeneratorService
-
setPlanVcsRevisionHistoryService
public void setPlanVcsRevisionHistoryService(PlanVcsRevisionHistoryService planVcsRevisionHistoryService) -
setImmutablePlanCacheService
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) -
setBuildContextBuilderFactory
-
toString
-