Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37996

Trend Graphs are not showing in Jenkins Pipeline job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The Job-level trend graphs including the latest test result link for Junit are not showing up in pipeline job. I can see the reports xml are getting generated inside **/target/surefire-reports. is it something I am missing?

      I have configured my "Test" stage like below:

      stage("Test") {
          try {
              // Any maven phase that triggers the test phase can be used here.
              sh 'mvn clean test -B'
          } catch(err) {
              junit '**/target/surefire-reports/TEST-*.xml'
              if (currentBuild.result == 'UNSTABLE') {
                 currentBuild.result = 'FAILURE'
              }
              throw err
          }
      }
      

        Attachments

          Activity

          Hide
          busches Scott Busche added a comment -

          You don't mention what versions you are using, but with jUnit 1.19 the graph is appearing.

          Show
          busches Scott Busche added a comment - You don't mention what versions you are using, but with jUnit 1.19 the graph is appearing.
          Hide
          joysarkarcap1 Joy Sarkar added a comment -

          I am using Junit 1.19 plugin. The trend graphs is working fine with freestyle job. But when trying use it in Pipleline plugin, I don't see the graph any more.

          Show
          joysarkarcap1 Joy Sarkar added a comment - I am using Junit 1.19 plugin. The trend graphs is working fine with freestyle job. But when trying use it in Pipleline plugin, I don't see the graph any more.
          Hide
          cleclerc Cyrille Le Clerc added a comment -

          Joy Sarkar Did you consider using the Pipeline Maven plugin?

          "withMaven() {...}" would automatically capture the JUnit reports in addition to other reports (FindBugs...). It would aslo be capable of triggering downstream jobs...

          Show
          cleclerc Cyrille Le Clerc added a comment - Joy Sarkar Did you consider using the Pipeline Maven plugin ? " withMaven() {... }" would automatically capture the JUnit reports in addition to other reports (FindBugs...). It would aslo be capable of triggering downstream jobs...

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              joysarkarcap1 Joy Sarkar
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: