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

Test results analyser should support workflow

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As a user I want to be able to analyse the test results for the various testing phases that exist in the workflow pipeline.

        Attachments

          Activity

          Hide
          cjmead Corey Mead added a comment -

          I tried adding the following to my Jenkins Pipeline - "step $class:'org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension'".

          Maybe I'm missing something, but I'm getting the error below. I'm not sure I understand how the last commit did anything to integrate the Test Results plugin with the Pipeline plugin.

          org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension
          at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:247)

          Show
          cjmead Corey Mead added a comment - I tried adding the following to my Jenkins Pipeline - "step $class:'org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension'". Maybe I'm missing something, but I'm getting the error below. I'm not sure I understand how the last commit did anything to integrate the Test Results plugin with the Pipeline plugin. org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:247)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          COMPATIBILITY.md
          http://jenkins-ci.org/commit/pipeline-plugin/c84a9af380854dbafd66e265b63cd05969ad7c47
          Log:
          Merge pull request #439 from alexbrjo/alexbrjo-compat-update

          JENKINS-32263 JENKINS-32650 JENKINS-33841 JENKINS-33310 JENKINS-26591 JENKINS-30522 Updated support status for several plugins

          Compare: https://github.com/jenkinsci/pipeline-plugin/compare/23d473486c8e...c84a9af38085

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/pipeline-plugin/c84a9af380854dbafd66e265b63cd05969ad7c47 Log: Merge pull request #439 from alexbrjo/alexbrjo-compat-update JENKINS-32263 JENKINS-32650 JENKINS-33841 JENKINS-33310 JENKINS-26591 JENKINS-30522 Updated support status for several plugins Compare: https://github.com/jenkinsci/pipeline-plugin/compare/23d473486c8e...c84a9af38085
          Hide
          jglick Jesse Glick added a comment -

          Corey Mead IIUC there is nothing to add to your script. The existing plugin functionality should just start working.

          Show
          jglick Jesse Glick added a comment - Corey Mead IIUC there is nothing to add to your script. The existing plugin functionality should just start working.
          Hide
          jherb Joachim Herb added a comment -

          Using Jenkins 2.102 and Test Results Analyzer Plugin 0.3.4 I see exactly the same error as https://issues.jenkins-ci.org/browse/JENKINS-30522?focusedCommentId=266438&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-266438
          org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension

          Show
          jherb Joachim Herb added a comment - Using Jenkins 2.102 and Test Results Analyzer Plugin 0.3.4 I see exactly the same error as https://issues.jenkins-ci.org/browse/JENKINS-30522?focusedCommentId=266438&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-266438 org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.testresultsanalyzer.TestResultsAnalyzerExtension
          Hide
          cjmead Corey Mead added a comment -

          Use the junit pipeline step.  It'll configure the job automatically to use the test results analyzer and as long as you have valid test results, will show the analyzer appropriately.

          https://jenkins.io/doc/pipeline/steps/junit/

          Show
          cjmead Corey Mead added a comment - Use the junit pipeline step.  It'll configure the job automatically to use the test results analyzer and as long as you have valid test results, will show the analyzer appropriately. https://jenkins.io/doc/pipeline/steps/junit/

            People

            Assignee:
            menonvarun Varun Menon
            Reporter:
            nharniman Nigel Harniman
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated: