def logparser(registry, xml_parent, data):
 clog = XML.SubElement(xml_parent, 'hudson.plugins.logparser.LogParserPublisher')
 clog.set('plugin', 'log-parser')
 mappings = [('unstable-on-warning', 'unstableOnWarning', False), ('fail-on-error', 'failBuildOnError', False), ('parse-rules', 'parsingRulesPath', '')]
 helpers.convert_mapping_to_xml(clog, data, mappings, fail_required=True)

def logparser ( registry , xml_parent , data ) : clog = XML . SubElement ( xml_parent , 'hudson.plugins.logparser.LogParserPublisher' ) clog . set ( 'plugin' , 'log-parser' ) mappings = [ ( 'unstable-on-warning' , 'unstableOnWarning' , False ) , ( 'fail-on-error' , 'failBuildOnError' , False ) , ( 'parse-rules' , 'parsingRulesPath' , '' ) ] helpers . convert_mapping_to_xml ( clog , data , mappings , fail_required = True )
yaml: logparser requires the jenkins :jenkins-wiki:log parser plugin <log+parser+plugin> .