Jenkins MultiJob Plugin does not combine test results

I use the jenkins multijob plugin to run several parallel assemblies in the same build phase, and I want to display the test results in the main multijob project, so I select the post-build action step for the "Aggregate test downstream" results "and select both:" Automatically aggregate all subsequent tests "and" Include failed builds in the results ", but when the tasks are completed and I go to the main project of multi-core projects, it shows" no tests "in the" Last test result "section ...

Has anyone else encountered this problem? My child projects of a child project that work in parallel are projects with several configurations.

+8
jenkins jenkins-plugins
source share
1 answer

As the previous poster showed, this is an open question in JENA Jenkins and does not work. There is a workaround to achieve what you are looking for. You will need to Copy the artifact poster , as well as Archive the test result files as Artifacts in your assignments that make the test pass.

After you correctly installed it and correctly configured your test tasks, go to Multijob, and after all the test steps add the β€œCopy artifacts from another project” assembly step for each of the tasks from which you want to get test results. You can use the "Indicate by Permalink" link and use the "Last Build" permalink to always get the latest artifacts. Select the artifacts you want to copy (ie * .xml) and enter the target directory as "job1". If you add several build steps to copy artifacts from another project, simply specify the destination directories for the copied artifacts, similar to "job2", "job3", etc.

Then select the Post-build action in your Multijob, just like publishing a report on the JUnit test results (or whatever you prefer) and enter ** / job * / *. xml (or similar).

This is what I did and everything works fine. This is a bit manual in setting, but it works great after setting it up.

+11
source share

All Articles