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

Gathering test results when using parallel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • junit-plugin
    • None

      The gathering of multiple JUnit files seems to fail when the tests are run via parallel on multiple nodes. The resulting JUnit file inside the build folder only contains tests of one of the nodes.

      Here is some excerpt from my pipeline script to explain what I'm doing:

              stage('Whitebox tests') {
                      parallel(
                          onHwA: {
                              node('ProvidesHwA') {
                                  bat 'run_whitebox_tests.py'
                                  junit '**/target/test_output/xml/*.test.xml'
                              }
                          },
                          onHwB: {
                              node('ProvidesHwB') {
                                  bat 'run_whitebox_tests.py'
                                  junit '**/target/test_output/xml/*.test.xml'
                              }
                          }
                      )
              }
      

            Unassigned Unassigned
            heiko_nardmann Heiko Nardmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: