title: Overriding default boolean parameter value from false to true when building one Jenkins pipeline from another
body: <p>I have 2 declarative jenkins pipeline, &quot;A&quot; and &quot;B&quot;.</p>
  <p>&quot;B&quot; has a boolean parameter named &quot;TEST&quot; with the default value as 'false'.</p>
  <p>I am calling pipeline &quot;B&quot; from &quot;A&quot; as below:</p>
  <pre><code>build job: 'B', parameters:[booleanParam(name: 'TEST', value:'true')], wait: true
  </code></pre>
  <p>However, the pipeline &quot;B&quot; is getting executed with the default value of 'false' only.</p>
  <p>I tried toBoolean() method as well, however, it was blocked during the pipeline execution stating requires script approval.</p>
  <p>I found another post related to it: <a href="https://stackoverflow.com/questions/55912678/overriding-default-parameter-when-building-one-jenkins-pipeline-from-another">Overriding default parameter when building one Jenkins pipeline from another</a></p>
  <p>But no solution there too.</p>
  <p>Any suggestions.</p>