Lockable Resources Plugin 可以解决你的问题。
链接:https://wiki.jenkins-ci.org/display/JENKINS/Lockable+Resources+Plugin
描述:This plugin allows to define lockable resources (such as printers, phones, computers, etc.) that can be used by builds. If a build requires an resource which is already locked, it will wait for the resource to be free. One can define a lock-priority globally and on a per-job basis.