Steps to reproduce
- In the default job, create task to checkout a repository that has no any test result files
- Create a script task that will create or copy a test result file to the build working directory. See screenshot script.png
- Create a Junit parser task to parse the result files created in step 2 above.
- The build fails with the error "Could not find test result reports in the ...."
This same configuration worked in Bamboo 4.1 but fails in later versions of 4.3.x
I'm having this problem using JUnit Parser on 5.14. In my case I am passing the xml file from one stage to the next as an artifact. Is this not exactly what artifacts are for?
To fix it you could have the artifact copy for a given stage touch the file so that its timestamp is after the start of the stage.
Better yet, if your goal is to avoid picking up files from previous builds, why not check their time vs. the start of the build rather than the start of the stage?