This is a proposal to fulfill requirements like in JENKINS-37718 in a more general way.
The proposal is to add a new prerequisites section, where we can define conditions that should prevent a job from beeing run even if there was a trigger, similar to what alreaddy happens if there is no free build-executor, so the job simply waits untill the prerequisites are meet.
prerequisites might include
- wait until other jobs are build
- trottle builds
- do not build when another job has a failed status