title: Jenkinsfile - How to pass parameters for all the stages
body: <p>To explain the issue, consider that I have 2 jenkins jobs.</p>
  
  <hr>
  
  <p>Job1 : PARAM_TEST1</p>
  
  <p>it accepts a parameterized value called 'MYPARAM'</p>
  
  <hr>
  
  <p>Job2: PARAM_TEST2</p>
  
  <p>it also accepts a parameterized value called 'MYPARAM'</p>
  
  <hr>
  
  <p>Sometimes I am in need of running these 2 jobs in sequence - so i created a separate pipeline job as shown below. It works just fine.</p>
  
  <p>it also accepts a parameterized value called 'MYPARAM' to simply pass it to the build job steps.</p>
  
  <pre><code>pipeline {
      agent any
      stages {
          stage("PARAM 1") {
              steps {
                  build job: 'PARAM_TEST1', parameters: [string(name: 'MYPARAM', value: "${params.MYPARAM}")]
              }
          }
          stage("PARAM 2") {
              steps {
                  build job: 'PARAM_TEST2', parameters: [string(name: 'MYPARAM', value: "${params.MYPARAM}")]
              }
          }     
      }
  }
  </code></pre>
  
  <hr>
  
  <p><strong>My question:</strong></p>
  
  <p>This example is simple. Actually I have 20 jobs. I do not want to repeat <code>parameters: [string(name: 'MYPARAM', value: "${params.MYPARAM}")]</code> in every single stage.</p>
  
  <p>Is there any way to set the parameters for all the build job steps in one single place?</p>