This change updates the gearman-plugin to build against Jenkins LTS
ver 1.565.3. This is required to support later versions of Jenkins
because there have been changes to Jenkins events in core.
This change adds the ItemListener to re-register gearman
functions on changes to jenkins projects. Using the ItemListener is
better because it provides more details on the item that's been
changed and the events are more grandular. There was also a change
to ComputerListener events (onTemporaryOffline and onTemporaryOnline)
that needed to be handled seperately in this change. The SaveableListener
is still needed due to a bug in ItemListener.
The most notable change to function registration is that the gearman
plugin will no longer register functions containing a node's self label.
Assume you have the following setup:
a node: named 'trusty-slave1' and labeled 'trusty'
a job: named 'my-job' that targets the 'trusty' label
The gearman plugin used to register the following functions:
'build:my-job', 'build:my-job:trusty' and
With this update the gearman plugin will only register
'build:my-job' and 'build:my-job:trusty'. It will no
longer register functions containing the implicit
node name (trusty-slave1).
If your gearman client has been using explicit labels
to execute builds then this change will not affect