-
Notifications
You must be signed in to change notification settings - Fork 13
Home
The Uno-Choice Plug-in provides job parameter types that are missing in other plug-ins. Its development is guided by the needs of researchers for their scientific workflows, but can also be used in Jenkins to build other kind of jobs.
Below you will find each job parameter, a short introduction and some screen shots and code snippets to help you. Please keep in mind that our idea is to either a) make this plug-in available in Jenkins update center or b) contribute to existing plug-ins. In the meantime follow the instructions for using the BioUno update center.
This parameter has the same features as the Uno-Choice Dynamic Choice Parameter, but with the cascading feature. This feature enables this plug-in to be re-rendered once one of its referenced parameters are changed (clicked, selected).
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 [] }
You have to provide a comma separeted list of referenced parameters. These parameters must be present in the UI. Your Uno-Choice Cascade Dynamic Choice Parameter will look for each referenced parameter and will register an event listener. Once the referenced parameter changes, its name and value will be passed to the Groovy script as variables, and the script will be re-rendered. Finally, the options will be updated.