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>
Trigger
that runs a job periodically.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimerTrigger.DescriptorImpl
static class
TimerTrigger.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 void
run()
Executes the triggered task.-
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, readResolve, start, stop
-
-
-
-
Constructor Detail
-
TimerTrigger
@DataBoundConstructor public TimerTrigger(@NonNull String spec)
-
-
Method Detail
-
run
public void run()
Description copied from class:Trigger
Executes 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:
run
in classTrigger<BuildableItem>
-
-