Jenkins pipeline - parallel stages merging only at the last stage
<p>I tried looking at the Jenkins pipeline documentation and more importantly the <a href="https://issues.jenkins-ci.org/browse/JENKINS-38442" rel="nofollow noreferrer">issue JENKINS-38442</a> before asking this question.</p>

<p>I would like to create a pipeline that looks like this: 
<img src="https://i.stack.imgur.com/NaccI.png" alt="Modified screenshot"></p>

<p>Basically, I would like the parallel stages to merge at different stages rather than the next stage itself. Is this possible?</p>

<p>The best I could do so far is only this: <img src="https://i.stack.imgur.com/6C0u8.png" alt="Original Screenshot"></p>

<p>Below is the pipeline code that generated the above pipeline:</p>

<pre><code>node {
   def staticTests = [:]
   staticTests["unit tests"] = {stage('unit'){ }}
   staticTests["static analysis"] = {stage('static'){ }}

   def tests = [:]
   tests["functional"] = {stage('functional'){}}
   tests["performance"] = {stage('performance'){}}
   tests["security"] = {stage('security'){}}

   stage('prepare'){}
   stage('tests'){parallel(staticTests)}
   stage('build'){}
   stage('int'){}
   stage('regression'){}
   stage('qa'){}
   stage('tests'){ parallel(tests) }
   stage('prod'){}
}
</code></pre>

<p>What changes will help me to create the pipeline as desired in the modified screenshot pasted above? Is this even possible today with Jenkins pipelines? Thank you for the help in advance!</p>