Jenkins Pipeline Test Results Support

It appears that support for analyzing test results has been added to the pipeline plugin from the jira problem below. I find it difficult to figure out how to efficiently implement the plugin using the script pipeline.

https://issues.jenkins-ci.org/browse/JENKINS-30522

Regardless of the problem with jira, how can I run the test result analyzer through my pipeline?

+5
source share
1 answer

When you add test reports to the script pipeline, this works automatically. The "Test Results Analyzer" button appears immediately for tasks that have tests, including those that use the pipeline plug-in.

For example, when using the standard "junit" report plugin, this should work out of the box:

stage('Unit tests') { steps { sh 'unit-tests.sh' } post { always { junit 'path/to/report.xml' } } } 
0
source

All Articles