-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
I have a pipeline Jenkinsfile like this:
pipeline { agent any stages { stage('Build') { steps { sh 'mvn clean install' } } } post { always { echo 'Publish TestNG result' step([$class: 'Publisher']) } } }
In Jenkins view I can see TestNG Results but in Blueocean view no test results be showed.
[JENKINS-54876] Blueocean doesn't show TestNG Results
Issue Type | Original: Bug [ 1 ] | New: Improvement [ 4 ] |
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
I execute
junit 'target/surefire-reports/junitreports/*.xml'
in my post step. (And that was the only change I did)