def config_file_provider_builder(xml_parent, data):
 xml_files = XML.SubElement(xml_parent, 'managedFiles')
 files = data.get('files', [])
 for file in files:
  xml_file = XML.SubElement(xml_files, 'org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile')
  mapping = [('file-id', 'fileId', None), ('target', 'targetLocation', ''), ('variable', 'variable', '')]
  convert_mapping_to_xml(xml_file, file, mapping, fail_required=True)

def config_file_provider_builder ( xml_parent , data ) : xml_files = XML . SubElement ( xml_parent , 'managedFiles' ) files = data . get ( 'files' , [ ] ) for file in files : xml_file = XML . SubElement ( xml_files , 'org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile' ) mapping = [ ( 'file-id' , 'fileId' , None ) , ( 'target' , 'targetLocation' , '' ) , ( 'variable' , 'variable' , '' ) ] convert_mapping_to_xml ( xml_file , file , mapping , fail_required = True )
builder / wrapper helper .