How to block Jenkins 2.x Pipeline from running while dependent jobs are being built

My question is quite simple: with the Freestyle Jenkins project in the Preliminary Project Settings section, I can choose two configuration options that help prevent conflicts between different projects (which can occur, for example, when one project updates a set of header files and another project in number):

  • Block assembly when building upstream project
  • Block assembly when a downstream project is built

For the Pipeline or Multibranch project, these configuration options are not available, and I (so far unsuccessfully) look for a way to achieve the same effect for the Pipeline or Multibranch project.

+6
source share
1 answer

You can solve this with the Lockable Resource Plugin .

Creating a shared resource used by upstream and downstream projects. Let the pipeline wait until it is available.

0
source

All Articles