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
[BAM-12671] JUNIT parser ignores test results created/provided from preceeding tasks
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 1443473 ] | New: JAC Bug Workflow v3 [ 3383838 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: Bamboo Workflow 2016 v1 [ 1421523 ] | New: Bamboo Workflow 2016 v1 - Restricted [ 1443473 ] |
Workflow | Original: Bamboo Workflow 2014 v2 [ 607168 ] | New: Bamboo Workflow 2016 v1 [ 1421523 ] |
Workflow | Original: Bamboo Workflow 2014 [ 595023 ] | New: Bamboo Workflow 2014 v2 [ 607168 ] |
Workflow | Original: Bamboo Workflow 2010 [ 458845 ] | New: Bamboo Workflow 2014 [ 595023 ] |
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?