title: How do I prevent Jenkins pipeline (workflow) from triggering multiple builds when used with multiple git repos?
body: <p>If you have a workflow which uses multiple git repositories, each git push triggers a build in Jenkins.</p>
  
  <p>If I have a workflow job configured to poll 10 git repositories and I pushed changes to all of them [quite possible when doing a release build] - that's 10 builds in the queue. This is both good and bad.  Bad because we will have changes in different repositories and we would like to kick off the build once all the files are in. At the same time I don't want to avoid polling the repositories.</p>
  
  <blockquote>
    <p>stage 'REPO-1' {<br>
    git branch: "feature/testbranch", changelog: true,
    poll: true, url: 'ssh://git@stash.com/repo1.git', credentialsId: 'xxx' 
    }</p>
    
    <p>stage 'REPO-2' {<br>
    git branch: "feature/testbranch", changelog: true,
    poll: true, url: 'ssh://git@stash.com/repo2.git', credentialsId: 'xxx'
    }</p>
  </blockquote>
  
  <p>Is there a way I can prevent this behavior perhaps introduce a delay in polling. </p>