title: jenkins pipeline - how to set ChoiceType Condition options
body: <p>I've two deployment categories, namely install and upgrade with the following code below
  and in the next parameters using Active choice reactive parameters called &quot;services&quot; i want to create separate ChoiceType which if the Category &quot;Install&quot; the choiceType: 'PT_MULTI_SELECT' (which means we can choose more than one service ) and if the Category &quot;Upgrade&quot; the choiceType: 'PT_SINGLE_SELECT', is that possible?</p>
  <pre><code>properties([
      parameters([
          [$class: 'ChoiceParameter', 
          choiceType: 'PT_SINGLE_SELECT', 
          description: 'Select Deployment Type', 
          filterLength: 1, filterable: false, 
          name: 'deployment', 
          script: [$class: 'GroovyScript', fallbackScript: 
                                           [classpath: [], 
                                           sandbox: false, 
                                           script: &quot;return['error']&quot;], 
                                           script: [classpath: [], sandbox: false, 
                                              script: &quot;return['Install','Upgrade']&quot;]]],
  </code></pre>
  <p>something like this</p>
  <pre><code>if (deployment.equals(&quot;Install&quot;))
  {
  [$class: 'CascadeChoiceParameter', 
          choiceType: 'PT_MULTI_SELECT',
  ...
  ...
  }
  if (deployment.equals(&quot;Upgrade&quot;))
  {
  [$class: 'CascadeChoiceParameter', 
          choiceType: 'PT_SINGLE_SELECT',
  ...
  ...
  }
  
  </code></pre>