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 java.lang.Object
- implements TriggerConditionsAwareBuildDetectionAction, ConditionalBuildDetectionAction
Constructor Summary |
ChangeDetectionListenerAction(PlanKey planKey,
java.util.Set<java.lang.Long> triggeringRepositories,
java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration)
|
ChangeDetectionListenerAction(PlanKey planKey,
java.util.Set<java.lang.Long> triggeringRepositories,
java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration,
boolean logIfNoChanges)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeDetectionListenerAction
public ChangeDetectionListenerAction(@NotNull
PlanKey planKey,
@NotNull
java.util.Set<java.lang.Long> triggeringRepositories,
@NotNull
java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration)
ChangeDetectionListenerAction
public ChangeDetectionListenerAction(PlanKey planKey,
@NotNull
java.util.Set<java.lang.Long> triggeringRepositories,
@NotNull
java.util.Map<java.lang.String,java.lang.String> triggerConditionsConfiguration,
boolean logIfNoChanges)
testIfBuildShouldStart
public com.atlassian.fugue.Pair<java.lang.Boolean,ErrorCollection> testIfBuildShouldStart()
- 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 produce
BuildContext
(even though BuildDetectionResult has such field) but it should
perform all time consuming data gathering required to do so in subsequent call to ConditionalBuildDetectionAction.createBuildContext()
- Specified by:
testIfBuildShouldStart
in interface ConditionalBuildDetectionAction
createBuildContext
public BuildDetectionResult createBuildContext()
- Description copied from interface:
ConditionalBuildDetectionAction
- Actual creation of a
BuildContext
. Should be as fast as possible.
If previous call to ConditionalBuildDetectionAction.testIfBuildShouldStart()
decided that the
build should start, this method is expected to produce BuildDetectionResult
containing valid BuildContext
- Specified by:
createBuildContext
in interface ConditionalBuildDetectionAction
getTriggerConditionsConfiguration
public java.util.Map<java.lang.String,java.lang.String> getTriggerConditionsConfiguration()
- Specified by:
getTriggerConditionsConfiguration
in interface TriggerConditionsAwareBuildDetectionAction
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.xwork.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)
Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.