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

Docs on use of pipeline junit action should cover making results optional

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • junit-plugin
    • None

      The junit-plugin's junit pipeline action now supports making the results optional, but none of the docs point this out.

       

      ex:

      junit testResults: 'output-jdk8/**/target/**/TEST-*.xml', allowEmptyResults: true
      

      Docs should be expanded to include an example.

          [JENKINS-47772] Docs on use of pipeline junit action should cover making results optional

          Sean Busbey added a comment -

          /cc abayer

          Sean Busbey added a comment - /cc abayer

          Andrew Bayer added a comment -

          So once https://github.com/jenkinsci/junit-plugin/pull/95 is merged and released, https://jenkins.io/doc/pipeline/steps/junit/#junit-archive-junit-formatted-test-results should properly include the HTML help for the allowEmptyResults field. Is that what you were looking for?

          Andrew Bayer added a comment - So once https://github.com/jenkinsci/junit-plugin/pull/95 is merged and released, https://jenkins.io/doc/pipeline/steps/junit/#junit-archive-junit-formatted-test-results should properly include the HTML help for the allowEmptyResults field. Is that what you were looking for?

          Mark Waite added a comment -

          Confirmed that the web site now describes the parameter

          Mark Waite added a comment - Confirmed that the web site now describes the parameter

            abayer Andrew Bayer
            busbey Sean Busbey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: