title: How to pass parameter value to stage build in Jenkins pipeline?
body: <p>I have a pipeline created which takes the parameter value from the user. I want to trigger a jenkin job using this parameter.
  How can I pass the parameter value to the build's parameter.
  Here is my code:</p>
  
  <pre><code>pipeline {
   agent any
   parameters {
    string(name: 'SYSTEM', defaultValue: '', description: 'Enter array. Example:SYS-123')
  
    string(name: 'EMail', defaultValue: '', description: 'Enter email id')
  
   }
   stages {
    stage('Example') {
     steps {
      echo "Hello ${params.SYSTEM}"
      echo "Hello ${params.EMail}"
     }
    }
    stage('core-rest-api-sanity') {
     steps {
      build job: 'xyz', parameters: [string(name: 'E-Mail', value: ${params.EMail}), string(name: 'SYSTEM', value: ${params.SYSTEM})]
     }
    }
   }
  }
  </code></pre>
  
  <p>In the above code, I am taking email and system details from the user. Then I want to trigger my job "xyz" which would require these parameter.</p>