title: jenkins java.io.FileNotFoundException: .. (No such file or directory)
body: <p>I can execute the below script successfully with groovy locally but the same script when executed in Jenkins returns the error message
  <code>java.io.FileNotFoundException: /home/jenkins/workspace/Leo_JF_sw_daily_integration_model_pytest/jenkinsfile/case_config/santity_check.txt (No such file or directory) </code></p>
  <p>What went wrong here?</p>
  <p><strong>Script</strong></p>
  <pre><code>    case_list = &quot;&quot;
      new File(&quot;${WORKSPACE}/jenkinsfile/case_config/${test_set.case_config}&quot;).eachLine {
      line -&gt;    case_list = line + &quot;,&quot; + case_list; }
      println(case_list)
  </code></pre>
  <p>The file exists and has the proper Permissions.</p>
  <p>So, I tried with the below script, but it also failed in Jenkins</p>
  <pre><code>String fileContents = new File(&quot;${WORKSPACE}/jenkinsfile/case_config/${test_set.case_config}&quot;).text
  </code></pre>
  <p>Any help will be appreciated. Thanks.</p>