We use Locks and Latches plugin to implement multiple jobs but one same build queue.

It has a bug. When both A,B jobs are in build queue, and are executed at the same time. The lock for A and B is not available.

Another plugin Build Blocker Plugin has similar function

Step 1

Set in Configuration System

Image

Step 2,

Set lock in your jobs.

Image(1)

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐