title: deadlock when run two pipelines parallel in jenkins
body: <p>Currently I have the following problem.
  I have written a Jenkinsfile to Build my Repository in a Pipeline.
  Each Repository has their own Pipeline in a Multibranch Pipeline. Whenever I push the Repository the Pipeline start to Work.</p>
  
  <p>For the building I have one Agent with two nodes. 
  When the Multibranch Pipeline is running, the Multibranch Pipeline uses one node the execute a single Pipeline and the second node is used by the currently executing pipeline to run a single Job. </p>
  
  <p>When two Pipelines run to the same time both Pipelines use one node. But now the Problem is both Pipelines can't start any Jobs since all nodes are occupied. At this time I have a deadlock since both pipelines are waiting for a free node for their jobs.</p>
  
  <p>I have tried to set "disableConcurrentBuilds()", but this only blocks the Pipeline with the same name. Pipelines with different names in the Multibranch Pipeline can run concurrently.</p>
  
  <p>A second try is to set Build Blocker Plugin with this code in the Jenkinsfile.</p>
  
  <pre><code>properties([
      [$class: 'BuildBlockerProperty',
       blockLevel: 'GLOBAL',
       blockingJobs: '*pipeline_Test*',
       scanQueueFor: 'ALL',
       useBuildBlocker: true],
     disableConcurrentBuilds()
     ])
  </code></pre>
  
  <p>But then I get this Error message.</p>
  
  <blockquote>
    <p>WorkflowScript: 30: Invalid option type "properties". Valid option
    types: [buildDiscarder, catchError, checkoutToSubdirectory,
    disableConcurrentBuilds, disableResume, durabilityHint, lock,
    newContainerPerStage, overrideIndexTriggers, retry, script,
    skipDefaultCheckout, skipStagesAfterUnstable, timeout, waitUntil,
    withContext, withCredentials, withEnv, ws] @ line 30, column 4</p>
  </blockquote>
  
  <p>How can I set the BuildBlockerProperty in the Jenkinsfile for the entire pipeline? 
  Is there a other way to block all other pipelines so long the pipeline is running?</p>
  
  <p>Thank you for help.</p>