title: Multiple jenkinsfile in one repository
body: <p>We have a project in a Github repository with multiple Jenkinsfiles:</p>
  
  <pre><code>my-project
    app
      Jenkinsfile
    lib1
      Jenkinsfile
    lib2
      Jenkinsfile
  </code></pre>
  
  <p>We have created 3 Jenkins pipelines each referring to a Jenkinsfile.
  <a href="https://i.stack.imgur.com/wfNLH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/wfNLH.png" alt="enter image description here"></a></p>
  
  <p>Question: How to avoid triggering "app" and "lib1" pipelines when there is a new commit in "lib2"? We don't want to run N jobs every time a commit happens.</p>
  
  <p>I've seen that the issue is addressed in <a href="https://issues.jenkins-ci.org/browse/JENKINS-43749" rel="noreferrer">https://issues.jenkins-ci.org/browse/JENKINS-43749</a>, but I haven't found a solution there.</p>