title: Jenkins CascadeChoiceParameter not rendering from Jenkinsfile
body: <p>The following CascaseChoiceParamater code in a Jenkinsfile does not render a reactive parameter. Same code renders fine using a Jenkins pipeline script. (where it was successfully tested). Any ideas?</p>
  <p>[$class: 'CascadeChoiceParameter',
  name: 'TARGET_HOST',
  choiceType: 'PT_SINGLE_SELECT',
  description: 'Target Server',
  filterLength: 1,
  filterable: false,
  randomName: 'choice-parameter-38222740232420',
  referencedParameters: 'ENV',
  script: [
  $class: 'GroovyScript',
  fallbackScript: [
  classpath: [],
  sandbox: false,
  script:
  &quot;return['Nothing']&quot;
  ],
  script: [
  classpath: [],
  sandbox: false,
  script:
  '''if (ENV.equals(&quot;PROD&quot;)) {
  return [&quot;RXBK1&quot;,&quot;RXBK2&quot;,&quot;ALL&quot;]
  }
  else if (ENV.equals(&quot;UAT&quot;)) {
  return [&quot;RXDV1&quot;,&quot;RXBK1UAT&quot;,&quot;RXBK2UAT&quot;,&quot;ALL&quot;]
  }
  else if (ENV.equals(&quot;QA&quot;)) {
  return [&quot;RXDV1&quot;,&quot;RXBK1QA&quot;,&quot;RXBK2QA&quot;,&quot;ALL&quot;]
  }
  else if (ENV.equals(&quot;DEV&quot;)) {return [&quot;RXDV1&quot;]
  }
  '''
  ]
  ]
  ],</p>
  <p><a href="https://i.stack.imgur.com/5KZNj.png" rel="nofollow noreferrer">enter image description here</a></p>