i-m-c / jenkins-inheritance-plugin

GNU Lesser General Public License v3.0
26 stars 34 forks source link

Does not work with "Uno-Choice Cascade Dynamic Choice Parameter" plugin #28

Open tknerr opened 10 years ago

tknerr commented 10 years ago

The Uno-Choice plugin, which allows you create cascading choice select boxes, is awesome too: https://github.com/biouno/uno-choice-plugin/wiki/Uno-Choice-Cascade-Dynamic-Choice-Parameter

However, it does not work together with an inheritance project. This is the example I used (see link above):

if (binding.variables.get('Gender') != null) {
  gender = binding.variables.get('Gender')
  if (gender == 'Male')
    return ['Waiter', 'Actor', 'Usher']
  else
    return ['Waitress', 'Actress', 'Usherette']
} else {
  return []
}

It seems that binding.variables.get('Gender') does not work when being used in an inheritance project, i.e. the example above always returns [].