title: How to discover Jenkinsfile in subfolders
body: <p>I have a project with two folders, that are independent, and needs separate builds in Jenkins (running v2.74)</p>
  
  <p>My structure is </p>
  
  <pre><code>folder
  ├── project1
  │   └── Jenkinsfile
  └── project2
      └── Jenkinsfile
  </code></pre>
  
  <p>When I click "scan organization" in Jenkins, it doesnt discover the Jenkinsfiles in subdirectories.</p>
  
  <p>Here is a sample from the "Scan organization log":</p>
  
  <pre><code>Proposing kg-pipeline
  Examining my-test-project
  
    Checking branches...
  
    Getting remote branches...
  
      Checking branch jenkins
        ‘Jenkinsfile’ not found
      Does not meet criteria
  
      Checking branch master
        ‘Jenkinsfile’ not found
      Does not meet criteria
  
    2 branches were processed
  
  Finished examining my-test-project
  </code></pre>
  
  <p>I didnt touch the configuration of the job that scans the organization and finds branches with Jenkinsfiles. Here is the current setting for the project</p>
  
  <p><a href="https://i.stack.imgur.com/gGoUa.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gGoUa.png" alt="Jenkinsfile discoverability configuration"></a></p>
  
  <p>My question is: How do I configure Jenkins to see each folder individually? I am also interested in links to example projects set up this way.</p>