public class TimerTrigger extends Trigger<BuildableItem>
Trigger
that runs a job periodically.Modifier and Type | Class and Description |
---|---|
static class |
TimerTrigger.DescriptorImpl |
static class |
TimerTrigger.TimerTriggerCause |
Trigger.Cron
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
TimerTrigger(String spec) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Executes the triggered task.
|
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, readResolve, start, stop
@DataBoundConstructor public TimerTrigger(@NonNull String spec) throws antlr.ANTLRException
antlr.ANTLRException
public void run()
Trigger
Trigger(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.
run
in class Trigger<BuildableItem>
Copyright © 2004–2021. All rights reserved.