title: Dynamic Multiselect choice values in Jenkins
body: <p>There is <code>jenkins</code> <strong>parameterized job</strong>.</p>
  
  <p>And there are two properties defined</p>
  
  <ol>
  <li>Property1 of choice type (has different configurations)</li>
  <li>Property2 of Extended Choice with Multi select, Choose Source for Value as Groovy script(each configuration has list of different test suites). Referring to <a href="https://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin" rel="nofollow">this</a> jenkins plugin.</li>
  </ol>
  
  <p>Would like to <strong>show the different list of values in Property2 based on the value selected for Property1.</strong></p>
  
  <p>Tried accessing <code>Property1</code>, <code>$Property1</code>, <code>%Property1%</code> in Groovy Script of Property2. But, does not seem to work.</p>
  
  <p>Script looks something like below</p>
  
  <pre class="lang-groovy prettyprint-override"><code>if ($Property1 == 'configuration1') {
      return ['suite1','suite2', 'suite3']
  } else if ($Property1 == 'configuration2') {
      return ['suite3', 'suite4']
  } else if ($Property1 == 'configuration3') {
      return ['suite5', 'suite6']
  }
  </code></pre>
  
  <p>Even returning simple list to <code>Property2</code> also does not seem to work from Groovy Script like <code>return ['suite1', 'suite2']</code> (just tried to show list of values without even checking condition). Am I missing something? </p>