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' } } }
source share