def ownership(registry, xml_parent, data):
 ownership_plugin = XML.SubElement(xml_parent, 'com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty')
 ownership = XML.SubElement(ownership_plugin, 'ownership')
 owner = str(data.get('enabled', True)).lower()
 XML.SubElement(ownership, 'ownershipEnabled').text = owner
 XML.SubElement(ownership, 'primaryOwnerId').text = data.get('owner')
 coownersIds = XML.SubElement(ownership, 'coownersIds')
 for coowner in data.get('co-owners', []):
  XML.SubElement(coownersIds, 'string').text = coowner

def ownership ( registry , xml_parent , data ) : ownership_plugin = XML . SubElement ( xml_parent , 'com.synopsys.arc.jenkins.plugins.ownership.jobs.JobOwnerJobProperty' ) ownership = XML . SubElement ( ownership_plugin , 'ownership' ) owner = str ( data . get ( 'enabled' , True ) ) . lower ( ) XML . SubElement ( ownership , 'ownershipEnabled' ) . text = owner XML . SubElement ( ownership , 'primaryOwnerId' ) . text = data . get ( 'owner' ) coownersIds = XML . SubElement ( ownership , 'coownersIds' ) for coowner in data . get ( 'co-owners' , [ ] ) : XML . SubElement ( coownersIds , 'string' ) . text = coowner
yaml: ownership plugin provides explicit ownership for jobs and slave nodes .