title: Jenkins doesn't see existing file in workspace
body: <p>I'm trying to read some file in a certain job.
  Using Script Console in Jenkins I see the follow:</p>
  
  <ul>
  <li>Jenkins can access the necessary build in a job</li>
  </ul>
  
  <p><code>file = new File ("${Jenkins.instance.getItemByFullName('Build mac pipelines/sand box').lastBuild}")</code></p>
  
  <p>The result will be:</p>
  
  <p><code>Result: Build mac pipelines/sand box #44</code></p>
  
  <ul>
  <li>But when I try to read the file groovy1.txt like this:</li>
  </ul>
  
  <p><code>file = new File ("${Jenkins.instance.getItemByFullName('Build mac pipelines/sand box').lastBuild}/groovy1.txt").text</code></p>
  
  <p>then Jenkins can't find groovy1.txt file</p>
  
  <p><code>Build mac pipelines/sand box #44/groovy1.txt (No such file or directory)</code></p>
  
  <p>It happens while such file exists, screenshot</p>
  
  <p><a href="https://i.stack.imgur.com/97g28.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/97g28.png" alt="screenshot"></a></p>
  
  <p>Why it happens and how to read the file ?</p>