Skip to content

Instantly share code, notes, and snippets.

@jeffscottbrown
Created February 3, 2022 13:54
Show Gist options
  • Save jeffscottbrown/cd5a0c63ffa7694dbecf72807c5697db to your computer and use it in GitHub Desktop.
Save jeffscottbrown/cd5a0c63ffa7694dbecf72807c5697db to your computer and use it in GitHub Desktop.
I am not setup to validate this in Jenkins but instead of this:
def parameter_list = [
choice(name: 'BAUDRATE',
choices: ['9600', '115200'],
description: 'Baud rate of the device.'),
]
return parameters(parameter_list)
Does this work?
def parameter_map = [
name: 'BAUDRATE',
choices: ['9600', '115200'],
description: 'Baud rate of the device.'
]
return parameters{ choice(parameter_map) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment