Class PeriodicFolderTrigger

java.lang.Object
hudson.triggers.Trigger<ComputedFolder<?>>
com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger
All Implemented Interfaces:
ExtensionPoint, Describable<Trigger<?>>

public class PeriodicFolderTrigger extends Trigger<ComputedFolder<?>>
A Trigger for ComputedFolders that will only trigger a recomputation if none has been triggered within a specified timeframe.
Author:
Stephen Connolly
  • Constructor Details

    • PeriodicFolderTrigger

      @DataBoundConstructor public PeriodicFolderTrigger(String interval)
      Constructor.
      Parameters:
      interval - the interval.
  • Method Details

    • getIntervalMillis

      public long getIntervalMillis()
      Returns the number of milliseconds between indexing.
      Returns:
      the number of milliseconds between indexing.
    • getInterval

      public String getInterval()
      Returns the interval between indexing.
      Returns:
      the interval between indexing.
    • run

      public void run()
      Overrides:
      run in class Trigger<ComputedFolder<?>>