org.jvnet.hudson.plugins.triggers.startup
Class HudsonStartupTrigger
java.lang.Object
hudson.triggers.Trigger<hudson.model.BuildableItem>
org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>
public class HudsonStartupTrigger
- extends hudson.triggers.Trigger<hudson.model.BuildableItem>
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 master Jenkins
instances starts
- Author:
- Ash Lux, Gregory Boissinot
| Nested classes/interfaces inherited from class hudson.triggers.Trigger |
hudson.triggers.Trigger.Cron |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.triggers.Trigger |
job, spec, tabs, timer |
| Methods inherited from class hudson.triggers.Trigger |
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, init, readResolve, run, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HudsonStartupTrigger
@DataBoundConstructor
public HudsonStartupTrigger(java.lang.String label,
java.lang.String quietPeriod)
throws antlr.ANTLRException
- Throws:
antlr.ANTLRException
getLabel
public java.lang.String getLabel()
getQuietPeriod
public int getQuietPeriod()
start
public void start(hudson.model.BuildableItem project,
boolean newInstance)
- Overrides:
start in class hudson.triggers.Trigger<hudson.model.BuildableItem>
Copyright © 2004-2013. All Rights Reserved.