def copyartifact_build_selector_param(registry, xml_parent, data):
 t = XML.SubElement(xml_parent, 'hudson.plugins.copyartifact.BuildSelectorParameter')
 try:
  name = data['name']
 except KeyError:
  raise MissingAttributeError('name')
 XML.SubElement(t, 'name').text = name
 XML.SubElement(t, 'description').text = data.get('description', '')
 copyartifact_build_selector(t, data, 'defaultSelector')

def copyartifact_build_selector_param ( registry , xml_parent , data ) : t = XML . SubElement ( xml_parent , 'hudson.plugins.copyartifact.BuildSelectorParameter' ) try : name = data [ 'name' ] except KeyError : raise MissingAttributeError ( 'name' ) XML . SubElement ( t , 'name' ) . text = name XML . SubElement ( t , 'description' ) . text = data . get ( 'description' , '' ) copyartifact_build_selector ( t , data , 'defaultSelector' )
yaml: copyartifact-build-selector control via a build parameter .