title: Jenkinsfile 'parallel' directive
body: <p>I am trying to write a <code>Jenkinsfile</code> that executes in parallel a sequence of steps. The goal is to have two <code>agents</code> (aka. <code>nodes</code>). One should do a windows build and the other a linux build. However I do not want this to happen sequentially but in parallel. I am trying to find documentation for the <code>parallel</code> directive that is described in <a href="https://support.cloudbees.com/hc/en-us/articles/230922168-Pipeline-Parallel-execution-of-tasks" rel="noreferrer">Pipeline - Parallel execution of tasks</a>.</p>
  
  <p>I found one occurence of <code>parallel</code> one on the Jenkins, but it seems the documentation is broken: <a href="https://jenkins.io/doc/pipeline/steps/workflow-cps/" rel="noreferrer">https://jenkins.io/doc/pipeline/steps/workflow-cps/</a></p>
  
  <pre><code>parallel: Execute in parallel
  
  org.kohsuke.stapler.NoStaplerConstructorException: 
      There’s no @DataBoundConstructor on any constructor of class
      org.jenkinsci.plugins.workflow.cps.steps.ParallelStep
  </code></pre>
  
  <p>How should I setup a Jenkinsfile that can execute a series of build steps on two different agents (one linux, one windows) in parallel?</p>
  
  <p>In particular, should I rather use the declarative or script based pipeline DSL?</p>