Skip to content

LinuxSuRen/startup-trigger-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Startup Trigger Plugin

The Startup Trigger plugin allows you to trigger a build when Jenkins nodes (master/slave) start.

Configuration

This plugin requires a jenkins restart (it will not work using install without restart). After installation you will find a new Build Trigger "Build when job nodes start" tickbox is available in the job configuration of each job.

Restricted node Label

By default this value is blank and the job will start (once) whenever the Jenkins master starts. Alternatively, you can specify a node label or a space separated list of nodes labels like:

LABEL_A LABEL_B

Or a label expression:

LABEL_A && LABEL_B

This plugin will trigger builds when any node matching this/these labels is started. This includes when the master is restarted, as each matching node reconnects the job will be re-executed.

Quiet period

Defaults to zero, allows you to specify the Quiet Period before scheduling the job.

Advanced Configuration

Node parameter name

The parameter name for Startup Trigger to use when specifying which node triggered the job. Useful if the default NodeLabelParameter value is a label and you want to run the job on the node that triggered the job's execution.

This can also reference a StringParameter, if instead you want the name of the started node to be handed to a job as an argument.

Trigger build on:

This pulldown provides a few options for what types of startup events should trigger builds:

  • Run on initial connection (Default)
    • This will trigger when a node first connects to Jenkins (JNLP, SSH, DCOM, etc..)
  • Run when node brought online
    • This will trigger when a node is "Temporarily Reconnected". For example: Node was previously "Marked as offline" and has now been brought online.
  • Both
    • Use this value to specify that both events should trigger build execution

Development Environment

This plugin seems to build successfully in all versions of Maven, but only releases correctly in Maven 3.3.9

About

Jenkins startup-trigger-plugin plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 95.2%
  • HTML 4.8%