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

Provide a way to add a configuration label when publishing during a parallel branch

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • junit-plugin
    • None

      Hello,

      When a multiConfig job publishes test resulst it is easy to see the test results per config.

      When a pipeline publishes multiple sets of test results, in the case of multiple configurations running in a parallel block, the published test results show no differentiation between configs or files.

      I would like to be able to add a label to the publish Junit step to allow me to create similar test result view as the multi config jobs.

      Screenshot attached of the multiConfig job view and the pipeline job view

      Here is a script that fits the described use case:

      def publicjJunit_test () {
          node (){
              writeFile file: 'junit.xml', text: """<?xml version="1.0" encoding="UTF-8"?>
      <testsuite hostname="gbga" name="tests.ATest">
        <testcase classname="tests" name="A" time="180.0"/>
        <testcase classname="tests" name="B" time="10800.0">
          <failure type="Test failure">Details about failure</failure>
        </testcase>
      </testsuite>
      """    
              junit 'junit.xml'
          }
      }
      
      Map multi_junit = [ 'junit_1': publicjJunit_test(),
                          'junit_2': publicjJunit_test(),
                          'junit_3': publicjJunit_test()]
      

            Unassigned Unassigned
            matthall Matthew Hall
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: