title: Bamboo TestParserTask: Could not find test result reports
body: <p>I wrote a bamboo plugin which is used for custom test results parsing (from a logfile). For the plugin I used <a href="https://developer.atlassian.com/display/BAMBOODEV/Test+Collection+and+Reporting" rel="noreferrer">this tutorial</a>.</p>
  
  <p>The log/results file is fetched from a previous task via ssh (yes it works, I looked into the folder). But my plugin doesn't find the file:</p>
  
  <pre><code>Could not find test result reports in the $somewhere/xml-data/build-dir/LEAS-LD-SOT directory.
  </code></pre>
  
  <p>In the mentioned path there is the file:</p>
  
  <pre><code>% ls -lah $somewhere/xml-data/build-dir/LEAS-LD-SOT
  total 120
  drwxr-xr-x  4 $user  $group    136 27 Mär 15:27 .
  drwxr-xr-x  9 $user  $group    306 27 Mär 02:45 ..
  -rw-r--r--  1 $user  $group  59043 27 Mär 15:27 test.log
  </code></pre>
  
  <p>The code part:</p>
  
  <pre><code>public class MyTestParserTask implements TaskType {
  
      private final TestCollationService testCollationService;
  
      public MyTestParserTask(TestCollationService testCollationService) {
          this.testCollationService = testCollationService;
      }
  
      @Override
      public TaskResult execute(TaskContext taskContext) throws TaskException {
          TaskResultBuilder taskResultBuilder = TaskResultBuilder.newBuilder(taskContext);
  
          testCollationService.collateTestResults(taskContext, "*", new MyTestReportCollector());
  
          return taskResultBuilder.checkTestFailures().build();
      }
  }
  </code></pre>
  
  <p>For the pattern I tried several variants (<code>*.log</code>, <code>**.log</code>, <code>*</code>, <code>/*.log</code>, ...) but without success.</p>
  
  <p>Just for the info: The <code>MyTestReportCollector</code> class has this function:</p>
  
  <pre><code>@Override
  public Set&lt;String&gt; getSupportedFileExtensions() {
      return Sets.newHashSet("log");
  }
  </code></pre>
  
  <p>In atlassian ticket I found a possible solution. There was the suggestion to change the timestamp of the file via script to a newer one (+1s). I tried this and the timestamp is set correctly but this change doesn't help.</p>