title: How can I block a Jenkins 2.x Pipeline job while dependent jobs are building
body: <p>My question is fairly straightforward: With a Freestyle Jenkins project under "Advance Project Options" I can select two configuration options that help prevent conflicts between different projects (that may arise e.g. when one project updates a set of header files while another project is including these):</p>
  
  <ul>
  <li><em>Block build when upstream project is building</em></li>
  <li><em>Block build when downstream project is building</em></li>
  </ul>
  
  <p>For a Pipeline or Multibranch project these configuration options are unavailable, and I am (so far without success) looking for a way to achieve the same effect for a Pipeline or Multibranch project.</p>