def inject_ownership_variables(registry, xml_parent, data):
 ownership = XML.SubElement(xml_parent, 'com.synopsys.arc.jenkins.plugins.ownership.wrappers.OwnershipBuildWrapper')
 XML.SubElement(ownership, 'injectNodeOwnership').text = str(data.get('node-variables', False)).lower()
 XML.SubElement(ownership, 'injectJobOwnership').text = str(data.get('job-variables', False)).lower()

def inject_ownership_variables ( registry , xml_parent , data ) : ownership = XML . SubElement ( xml_parent , 'com.synopsys.arc.jenkins.plugins.ownership.wrappers.OwnershipBuildWrapper' ) XML . SubElement ( ownership , 'injectNodeOwnership' ) . text = str ( data . get ( 'node-variables' , False ) ) . lower ( ) XML . SubElement ( ownership , 'injectJobOwnership' ) . text = str ( data . get ( 'job-variables' , False ) ) . lower ( )
yaml: inject-ownership-variables inject ownership variables to the build as environment variables .