def choice_param(registry, xml_parent, data):
 pdef = base_param(registry, xml_parent, data, False, 'hudson.model.ChoiceParameterDefinition')
 choices = XML.SubElement(pdef, 'choices', {'class': 'java.util.Arrays$ArrayList'})
 a = XML.SubElement(choices, 'a', {'class': 'string-array'})
 for choice in data['choices']:
  XML.SubElement(a, 'string').text = choice

def choice_param ( registry , xml_parent , data ) : pdef = base_param ( registry , xml_parent , data , False , 'hudson.model.ChoiceParameterDefinition' ) choices = XML . SubElement ( pdef , 'choices' , { 'class' : 'java.util.Arrays$ArrayList' } ) a = XML . SubElement ( choices , 'a' , { 'class' : 'string-array' } ) for choice in data [ 'choices' ] : XML . SubElement ( a , 'string' ) . text = choice
yaml: choice a single selection parameter .