org.jvnet.hudson.plugins.triggers.startup
Class HudsonStartupTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.BuildableItem>
      extended by 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 Class Summary
static class HudsonStartupTrigger.HudsonStartupDescriptor
           
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
hudson.triggers.Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
HudsonStartupTrigger(java.lang.String label, java.lang.String quietPeriod)
           
 
Method Summary
 java.lang.String getLabel()
           
 int getQuietPeriod()
           
 void start(hudson.model.BuildableItem project, boolean newInstance)
           
 
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
 

Constructor Detail

HudsonStartupTrigger

@DataBoundConstructor
public HudsonStartupTrigger(java.lang.String label,
                                                 java.lang.String quietPeriod)
                     throws antlr.ANTLRException
Throws:
antlr.ANTLRException
Method Detail

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.