Package hudson.triggers
Class TimerTrigger
- java.lang.Object
-
- hudson.triggers.Trigger<BuildableItem>
-
- hudson.triggers.TimerTrigger
-
- All Implemented Interfaces:
ExtensionPoint,Describable<Trigger<?>>
public class TimerTrigger extends Trigger<BuildableItem>
Triggerthat runs a job periodically.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimerTrigger.DescriptorImplstatic classTimerTrigger.TimerTriggerCause-
Nested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.Cron
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TimerTrigger(String spec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()Executes the triggered task.-
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, readResolve, start, stop, toString
-
-
-
-
Constructor Detail
-
TimerTrigger
@DataBoundConstructor public TimerTrigger(@NonNull String spec)
-
-
Method Detail
-
run
public void run()
Description copied from class:TriggerExecutes the triggered task. This method is invoked whenTrigger(String)is used to create an instance, and the crontab matches the current time.Maybe run even before
Trigger.start(hudson.model.Item, boolean), prepare for it.- Overrides:
runin classTrigger<BuildableItem>
-
-