This plugins allows to define "lockable resources" in the global configuration. These resources can then be "required" by jobs. If a job requires a resource which is already locked, it will be put in queue until the resource is released.
smootoo/lockable-resources-plugin
A fork of the upstream repo that has merged PRs that we need for ManAHL's internal deployment of this plugin
JavaMIT