title: Jenkins Multibranch pipeline cannot find Jenkinsfile in subfolder
body: <p>I am using a Jenkins Multibranch pipeline -- specifically, an Organization folder, which monitors all my Bitbucket repos and builds a pipeline for any repo containing a Jenkinsfile. For simplicity, I have configured it to look at only 1 of my repos for now.</p>
  
  <p>Here's my problem: </p>
  
  <p>When the Jenkinsfile is located in the root folder of my repo, everything works fine -- Jenkins sees the Jenkinsfile, and creates the pipeline as defined in that Jenkinsfile.</p>
  
  <pre><code>repo
  |
  |___&gt; Jenkinsfile
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/lJO3R.png" alt="Screenshot: Jenkins configured to look for Jenkinsfile in root folder"></p>
  
  <p>As you can see, Jenkins finds it without any issues:
  <img src="https://i.stack.imgur.com/bRFmU.png" alt="Screenshot: Jenkins finds Jenkinsfile in root folder"></p>
  
  <hr>
  
  <p>However, I want to move the Jenkinsfile to a subfolder in my repo (giving me the flexibility to have multiple pipelines defined for 1 repo).
  When I move it to a subfolder (<code>jenkins/ci-pipeline/Jenkinsfile</code>), even though I explicitly give that relative file path to Jenkins, it can no longer find the Jenkinsfile!!</p>
  
  <pre><code>repo
  |
  |___&gt; jenkins
         |
         |___&gt; ci-pipeline
                |
                |___&gt; Jenkinsfile
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/vbJnZ.png" alt="Screenshot: Jenkins configured to look for Jenkinsfile in subfolder"></p>
  
  <p>As you can see, despite giving the relative file path (<code>jenkins/ci-pipeline/Jenkinsfile</code>) to Jenkins, it claims it can no longer find the Jenkinsfile:<br>
  <img src="https://i.stack.imgur.com/Std1U.png" alt="Screenshot: Jenkins cannot find Jenkinsfile in subfolder"></p>
  
  <p>Incidentally, even though the description of that Jenkins field says it is the "relative location", I tried to give it an absolute file path (<code>${WORKSPACE}/jenkins/ci-pipeline/Jenkinsfile</code>) instead to see if that would work:<br>
  <img src="https://i.stack.imgur.com/JPFO8.png" alt="Screenshot: Jenkins configured with absolute path of subfolder"></p>
  
  <p>Unfortunately, that didn't work either -- also, Jenkins didn't expand its <code>WORKSPACE</code> environment variable:<br>
  <img src="https://i.stack.imgur.com/ZPPhf.png" alt="Screenshot: Jenkins cannot find Jenkinsfile in subfolder, even with absolute path"></p>
  
  <p>I have also logged into my Jenkins worker node and confirmed that the Jenkinsfile is present in that subfolder, within the Jenkins workspace for my repo.</p>
  
  <hr>
  
  <p>Can someone please tell me what I'm doing wrong?? 
  This seems very simple, but it just refuses to work and it's driving me nuts!</p>