-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
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
- relates to
-
JENKINS-37718 Block Pipeline job while upstream or downstream projects are building
-
- Open
-
-
JENKINS-42643 Conditional application of triggers in Declarative
-
- Open
-
-
JENKINS-67402 Conditional post action depending on which trigger
-
- Closed
-
As a background: We have an automated UI test that is triggered by the upstream build. Of course it can also happen that the testcode itself is adjusted so we also have an SCM trigger.
If the previous job fails or is currently building we want to block the ui test regardless of SCM change or a user is triggering such a build.