def promoted_param(registry, xml_parent, data):
 pdef = base_param(registry, xml_parent, data, False, 'hudson.plugins.promoted__builds.parameters.PromotedBuildParameterDefinition')
 try:
  XML.SubElement(pdef, 'projectName').text = data['project-name']
 except KeyError:
  raise MissingAttributeError('project-name')
 XML.SubElement(pdef, 'promotionProcessName').text = data.get('promotion-name', None)

def promoted_param ( registry , xml_parent , data ) : pdef = base_param ( registry , xml_parent , data , False , 'hudson.plugins.promoted__builds.parameters.PromotedBuildParameterDefinition' ) try : XML . SubElement ( pdef , 'projectName' ) . text = data [ 'project-name' ] except KeyError : raise MissingAttributeError ( 'project-name' ) XML . SubElement ( pdef , 'promotionProcessName' ) . text = data . get ( 'promotion-name' , None )
yaml: promoted build a promoted build parameter .