[JIRA] (JENKINS-54876) Blueocean doesn't show TestNG Results

13 views
Skip to first unread message

chanjarster@gmail.com (JIRA)

unread,
Nov 27, 2018, 3:19:02 AM11/27/18
to jenkinsc...@googlegroups.com
Daniel Qian created an issue
 
Jenkins / Bug JENKINS-54876
Blueocean doesn't show TestNG Results
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: blueocean-view.png, jenkins-view.png
Components: blueocean-plugin
Created: 2018-11-27 08:18
Priority: Minor Minor
Reporter: Daniel Qian

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

gmogan@cloudbees.com (JIRA)

unread,
Apr 26, 2019, 2:19:04 PM4/26/19
to jenkinsc...@googlegroups.com
Gavin Mogan updated an issue
 
Jenkins / Improvement JENKINS-54876
Change By: Gavin Mogan
Issue Type: Bug Improvement

brange.m@gmail.com (JIRA)

unread,
Feb 20, 2020, 3:39:03 AM2/20/20
to jenkinsc...@googlegroups.com
Magnus Brange commented on Improvement JENKINS-54876
 
Re: Blueocean doesn't show TestNG Results

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)

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages