def robot(registry, xml_parent, data):
 parent = XML.SubElement(xml_parent, 'hudson.plugins.robot.RobotPublisher')
 parent.set('plugin', 'robot')
 mappings = [('output-path', 'outputPath', None), ('log-file-link', 'logFileLink', ''), ('report-html', 'reportFileName', 'report.html'), ('log-html', 'logFileName', 'log.html'), ('output-xml', 'outputFileName', 'output.xml'), ('pass-threshold', 'passThreshold', '0.0'), ('unstable-threshold', 'unstableThreshold', '0.0'), ('only-critical', 'onlyCritical', True), ('enable-cache', 'enableCache', True)]
 helpers.convert_mapping_to_xml(parent, data, mappings, fail_required=True)
 other_files = XML.SubElement(parent, 'otherFiles')
 for other_file in data.get('other-files', []):
  XML.SubElement(other_files, 'string').text = str(other_file)
 XML.SubElement(parent, 'disableArchiveOutput').text = str((not data.get('archive-output-xml', True))).lower()

def robot ( registry , xml_parent , data ) : parent = XML . SubElement ( xml_parent , 'hudson.plugins.robot.RobotPublisher' ) parent . set ( 'plugin' , 'robot' ) mappings = [ ( 'output-path' , 'outputPath' , None ) , ( 'log-file-link' , 'logFileLink' , '' ) , ( 'report-html' , 'reportFileName' , 'report.html' ) , ( 'log-html' , 'logFileName' , 'log.html' ) , ( 'output-xml' , 'outputFileName' , 'output.xml' ) , ( 'pass-threshold' , 'passThreshold' , '0.0' ) , ( 'unstable-threshold' , 'unstableThreshold' , '0.0' ) , ( 'only-critical' , 'onlyCritical' , True ) , ( 'enable-cache' , 'enableCache' , True ) ] helpers . convert_mapping_to_xml ( parent , data , mappings , fail_required = True ) other_files = XML . SubElement ( parent , 'otherFiles' ) for other_file in data . get ( 'other-files' , [ ] ) : XML . SubElement ( other_files , 'string' ) . text = str ( other_file ) XML . SubElement ( parent , 'disableArchiveOutput' ) . text = str ( ( not data . get ( 'archive-output-xml' , True ) ) ) . lower ( )
yaml: robot adds support for the robot framework plugin requires the jenkins :jenkins-wiki:robot framework plugin <robot+framework+plugin> .