Class HudsonStartupTrigger
java.lang.Object
hudson.triggers.Trigger<BuildableItem>
org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger
- All Implemented Interfaces:
ExtensionPoint
,Describable<Trigger<?>>
Enables the current job to be restarted when Jenkins nodes start
(The user is able to set a label to restrict some Jenkins nodes).
Without any specified label, the job is restarted when the controller Jenkins
instances starts
- Author:
- Ash Lux, Gregory Boissinot
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.Cron
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHudsonStartupTrigger
(String label, String quietPeriod, String nodeParameterName, String runOnChoice) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
int
void
start
(BuildableItem project, boolean newInstance) Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, readResolve, run, stop
-
Constructor Details
-
HudsonStartupTrigger
-
-
Method Details
-
getLabel
-
getQuietPeriod
public int getQuietPeriod() -
getNodeParameterName
-
getRunOnChoice
-
start
- Overrides:
start
in classTrigger<BuildableItem>
-