Class DetectChangesAfterBuildCompletedListener

java.lang.Object
com.atlassian.bamboo.trigger.DetectChangesAfterBuildCompletedListener

public class DetectChangesAfterBuildCompletedListener extends Object
For applicable triggers only, this listener causes change detection after each plan execution completes so that new changes occurring during change detection will immediately receive a new build. This mitigates the situation where remote event triggers are lost because the plan's concurrency limit blocks them.

Most triggers, such as polling, will not use this mechanism, since their changes will be picked up on the next poll. Triggers opt into this listener detectChangesOnCompletion="true" in their triggerType declaration such that TriggerModuleDescriptor.requiresChangeDetectionOnCompletion() returns true.

  • Constructor Details

    • DetectChangesAfterBuildCompletedListener

      public DetectChangesAfterBuildCompletedListener()
  • Method Details

    • onChainCompletedEvent

      @EventListener public void onChainCompletedEvent(ChainCompletedEvent event)
    • setCachedPlanManager

      public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
    • setEventPublisher

      public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
    • setTriggerTypeManager

      public void setTriggerTypeManager(TriggerTypeManager triggerTypeManager)