accelerated-build-now-plugin
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
LICENSE.txt
README.md
pom.xml

README.md

Accelerated Build Now Plugin

The Jenkins Accelerated Build Now Plugin allows Jenkins users to launch a project's build right away, even if the queue is long (moving it to the top of the queue) and even if no executor is available (killing and rescheduling builds not launched by "humans")

How to build and test :

Simply clone this repo and run mvn clean install hpi:run

How to install :

Download the latest release and use Jenkins installer advanced tab to upload and install it to Jenkins.

How to use :

When your Jenkins cluster is overloaded with jobs (a queue with 10+ builds, all the executors busy with nightly builds that take ages), you know you will wait ages before the job you want to run effectively starts running. Relax ! With the Accelerated Build Now Plugin, your job will run right away !

  1. The queue is full of automatically (not user launched) scheduled jobs, and the only executor available is busy ...

Screenshot

  1. You want your job maven-surefire to run ASAP, so you click on the Accelerated Build Now button

Screenshot

  1. Your maven-surefire job just got priorized to the top of the queue and just started running (it had to kill the quartz job, but it rescheduled it already)

Screenshot

  1. A nice rhyno badge was added to your build that got "acceleratedly built" ; if you click on it you will see the killed build got a killed rhyno badge

Screenshot

Screenshot

How does that work ?

When you click on the Accelerated Build Now button, the plugin will :

  • make sure the queue is not empty and all the excutors are busy ( if not, it will normally schedule the build and exit)
  • sort the queue using a QueueSorter wrapping any existing QueueSorter (such as the Priority Sorter Plugin queue sorter)
  • look for any executors compatible with this job (checking labels) and running a job not scheduled by a "human" (SCM triggered, cron style triggered, etc..); if none is found, exit
  • if a compatible executor is found: abort the build (and re schedule it for later) and mark it as killed by the plugin, wait for the accelerated build to start, mark it as accelerated

Authors :

This plugin was developed by Terracotta, by

License

Apache 2 licensed (see LICENSE.txt)