def promoted_build(registry, xml_parent, data):
 promoted = XML.SubElement(xml_parent, 'hudson.plugins.promoted__builds.JobPropertyImpl')
 names = data.get('names', [])
 if names:
  active_processes = XML.SubElement(promoted, 'activeProcessNames')
  for n in names:
   XML.SubElement(active_processes, 'string').text = str(n)

def promoted_build ( registry , xml_parent , data ) : promoted = XML . SubElement ( xml_parent , 'hudson.plugins.promoted__builds.JobPropertyImpl' ) names = data . get ( 'names' , [ ] ) if names : active_processes = XML . SubElement ( promoted , 'activeProcessNames' ) for n in names : XML . SubElement ( active_processes , 'string' ) . text = str ( n )
yaml: promoted-build marks a build for promotion .