title: When creating a scan multibranch pipeline via the job DSL plugin will not autocreate jobs for each branch
body: <p>I am creating a multibranch pipeline job using the Job DSL Plugin as documented in <a href="https://jenkinsci.github.io/job-dsl-plugin/#path/multibranchPipelineJob" rel="nofollow noreferrer">https://jenkinsci.github.io/job-dsl-plugin/#path/multibranchPipelineJob</a>
  The multibranch pipeline job is created but it does not create a new pipeline eventhough one branch has a Jenkinsfile.
  Everytime I trigger a Scan I see the following output:</p>
  
  <pre><code>Getting remote branches...
  Seen branch in repository origin/branch1
  Seen branch in repository origin/branch2
  Seen branch in repository origin/master
  Seen 3 remote branches
  Checking branch master
  Checking branch branch2
  Checking branch branch1
  Done.
  [Tue Jun 20 11:49:46 GMT 2017] Finished branch indexing. Indexing took 2.2 sec
  Finished: SUCCESS
  </code></pre>
  
  <p>If I create a multibranch pipeline via the Jenkins UI and run the job what I see instead is</p>
  
  <pre><code>Getting remote branches...
  Seen branch in repository origin/branch1
  Seen branch in repository origin/branch2
  Seen branch in repository origin/master
  Seen 3 remote branches
  Checking branch branch2
        ‘Jenkinsfile’ not found
  Does not meet criteria
  Checking branch branch1
        ‘Jenkinsfile’ found
  Met criteria
  Done.
  [Tue Jun 20 11:52:58 GMT 2017] Finished branch indexing. Indexing took 2.7 sec
  Finished: SUCCESS
  </code></pre>
  
  <p>As you can see ‘Jenkinsfile’ not found is missing when generating the job via the Job DSL Plugin. What I am missing?</p>
  
  <p>My Job DSL Plugin is using the example code as documented:</p>
  
  <pre><code>multibranchPipelineJob('example') {
      branchSources {
          git {
              remote('https://github.com/jenkinsci/job-dsl-plugin.git')
              credentialsId('github-ci')
              includes('JENKINS-*')
          }
      }
      orphanedItemStrategy {
          discardOldItems {
              numToKeep(20)
          }
      }
  }
  </code></pre>