Class HudsonStartupTrigger

java.lang.Object
hudson.triggers.Trigger<BuildableItem>
org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger
All Implemented Interfaces:
ExtensionPoint, Describable<Trigger<?>>

public class HudsonStartupTrigger extends Trigger<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 controller Jenkins instances starts
Author:
Ash Lux, Gregory Boissinot
  • Constructor Details

    • HudsonStartupTrigger

      @DataBoundConstructor public HudsonStartupTrigger(String label, String quietPeriod, String nodeParameterName, String runOnChoice)
  • Method Details

    • getLabel

      public String getLabel()
    • getQuietPeriod

      public int getQuietPeriod()
    • getNodeParameterName

      public String getNodeParameterName()
    • getRunOnChoice

      public String getRunOnChoice()
    • start

      public void start(BuildableItem project, boolean newInstance)
      Overrides:
      start in class Trigger<BuildableItem>