| I had the same problem but I just found out that I can publish the junit xml reports instead of testngs' report.xml. I'm still running tests with TestNG, but TestNG generates junit xml reports as well. For me they are located in target/surefire-reports/junitreports/*.xml. So instead of
step([$class: 'Publisher',
reportFilenamePattern: 'target/surefire-reports/testng-results.xml'
])
I execute
junit 'target/surefire-reports/junitreports/*.xml'
in my post step. (And that was the only change I did) |