title: How to aggregate test results in jenkins parallel pipeline?
body: <p>I have a <code>Jenkinsfile</code> with a definition for parallel test execution, and the task is to grab the test results from both in order to process them in a <code>post</code> step somewhere.</p>
  
  <p>Problem is: How to do this? Searching for anything acting as an example code does not bring up anything - either the examples deal with explaining <code>parallel</code>, or they explain <code>post</code> with <code>junit</code>.</p>
  
  <pre><code>pipeline {
      agent { node { label 'swarm' } }
  
      stages {
          stage('Testing') {
              parallel {
                  stage('Unittest') {
                      agent { node { label 'swarm' } }
  
                      steps {
                          sh 'unittest.sh'
                      }
                  }
  
                  stage ('Integrationtest') {
                      agent { node { label 'swarm' } }
  
                      steps {
                          sh 'integrationtest.sh'
                      }
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Defining a <code>post {always{junit(...)}}</code> step at both parallel stages yielded a positive reaction from the BlueOcean GUI, but the test report recorded close to double the amount of tests - very odd, some file must have been scanned twice. Adding this <code>post</code> step to the surrounding "Testing" stage gave an error.</p>
  
  <p>I am missing an example detailing how to post-process test results that get created in a <code>parallel</code> block.</p>