title: How to run pipeline in parallel?
body: <p>How can I go about parallelizing the following pipeline? Each string from the <strong>test_proj_choices</strong> list needs to run in parallel. I have tried using the parallel function inside of the for each loop but I keep getting syntax errors. I appreciate any help. I have been having a hard time with this.</p>
  <pre><code>pipeline 
  {
      agent {label 'UH60V &amp;&amp; SCADE'}
  
      stages
      {
              
                  stage ('Test') {
                  steps
                  {
                      script
                      {
                          def test_proj_choices = ['ADC', 'CDU_C', 'DCU', 'DISP_A_REND', 'DISP_PROC', 'EGI', 'FD', 'FLT', 'FMS_C', 'IFF', 'liblO', 'libNGC', 'libSC', 'MISCMP_MP', 'MISCMP_GP', 'NAV_MGR', 'RADALT', 'SYS', 'SYSIO1553', 'SYSIO429', 'SYSRED', 'TACAN', 'VOR_ILS', 'VPA', 'WAAS', 'WCA']
                          for (choice in test_proj_choices) 
                          {
                              stage (&quot;${choice}&quot;) 
                              {
                                  echo &quot;Running ${choice}&quot;
                                  build job: &quot;SCADE_Suite_Testing&quot;, parameters: [string(name: &quot;SCADE_SUITE_TEST_PROJECT&quot;, value: choice), string(name: &quot;SCADE_SUITE_TEST_ACTION&quot;, value: &quot;all&quot;), string(name: &quot;CLEARCASE_VIEW_ROOT&quot;, value: &quot;myview&quot;)] 
                              }
                          }
                      }
                  }
                  }
      } 
  }
  </code></pre>