Is it possible to limit the number of instances of a single build configuration in the queue?
When a build is triggered I would like it to be added to the queue but if there are more than x instances of that build on the queue already then the oldest instance of the build in the queue is removed as well as the new instance being added.
Is there a plugin that does this?
Haven't used this plugin personally, but give it a try. I think it throttles the maximum no. of jobs instances in a given node or globally.
https://wiki.jenkins-ci.org/display/JENKINS/Throttle+Concurrent+Builds+Plugin