title: Jenkins: Cucumber Trend report cannot find json file even though file exists
body: <p>I have installed Cucumber Trend Report plugin 1.3 on Jenkins v2.49. I have then added a Cucumber Trend Report post build action in my jenkins job. As soon as the job reached the post build action it gives the following error - </p>
  
  <blockquote>
    <p>ERROR: Step ‘Cucumber Trend Report’ aborted due to exception: 
    java.io.FileNotFoundException: Source
    '/home/xxx/slave/workspace/job_name/folder/reports/sample.json' does
    not exist     at
    org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1074)     at
    org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)     at
    org.jenkinsci.plugins.cucumbertrendsreport.publish.CucumberTrendReportBuilder.perform(CucumberTrendReportBuilder.java:70)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at
    hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      at
    hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)  at
    hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
      at hudson.model.Run.execute(Run.java:1753)  at
    hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)   at
    hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:405)</p>
  </blockquote>
  
  <p>The sample.json file exists. I do not understand why the plugin cannot find it.</p>
  
  <p>P.S. - The job is executed on a slave agent. </p>
  
  <p><strong>UPDATE -</strong> The cucumber command in the build section is </p>
  
  <p>RAILS_ENV=development cucumber  --format json -o reports/features_firstRun.json --format pretty --tags @doctor  ||:
  cucumber --format pretty --format html @rerun.txt -o reports/features_rerun.html</p>
  
  <p>The Post Build Section for cucumber trend report is
  <a href="https://i.stack.imgur.com/hLAnJ.jpg" rel="nofollow noreferrer">Buid and Post Build page</a></p>