How can I prevent a job from grabbing an executor if another job (with a specific name) is already running?
I'm looking for something like the Build Blocker plugin but for Declarative pipelines.
I've tried the Lockable Resources plugin but it doesn't prevent the job from grabbing an executor, the job gets an executor and then waits until the resource frees to actually do anything.
We have hundreds of jobs, so manually configuring each one is impractical and too difficult to maintain.
I've seen these similar questions, but am trying to do this using the relatively new declarative pipeline