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
Method Summary |
void |
run()
Executes the triggered task. |
Methods inherited from class hudson.triggers.Trigger |
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, init, readResolve, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerTrigger
@DataBoundConstructor
public TimerTrigger(String spec)
throws antlr.ANTLRException
- Throws:
antlr.ANTLRException
run
public void run()
- Description copied from class:
Trigger
- Executes the triggered task.
This method is invoked when
Trigger.Trigger(String)
is used
to create an instance, and the crontab matches the current time.
- Overrides:
run
in class Trigger<BuildableItem>
Copyright © 2004-2013. All Rights Reserved.