def rich_text_publisher(registry, xml_parent, data):
 parsers = ['HTML', 'Confluence', 'WikiText']
 reporter = XML.SubElement(xml_parent, 'org.korosoft.jenkins.plugin.rtp.RichTextPublisher')
 reporter.set('plugin', 'rich-text-publisher-plugin')
 mappings = [('stable-text', 'stableText', None), ('unstable-text', 'unstableText', ''), ('failed-text', 'failedText', ''), ('unstable-as-stable', 'unstableAsStable', True), ('failed-as-stable', 'failedAsStable', True), ('parser-name', 'parserName', 'WikiText', parsers)]
 helpers.convert_mapping_to_xml(reporter, data, mappings, fail_required=True)

def rich_text_publisher ( registry , xml_parent , data ) : parsers = [ 'HTML' , 'Confluence' , 'WikiText' ] reporter = XML . SubElement ( xml_parent , 'org.korosoft.jenkins.plugin.rtp.RichTextPublisher' ) reporter . set ( 'plugin' , 'rich-text-publisher-plugin' ) mappings = [ ( 'stable-text' , 'stableText' , None ) , ( 'unstable-text' , 'unstableText' , '' ) , ( 'failed-text' , 'failedText' , '' ) , ( 'unstable-as-stable' , 'unstableAsStable' , True ) , ( 'failed-as-stable' , 'failedAsStable' , True ) , ( 'parser-name' , 'parserName' , 'WikiText' , parsers ) ] helpers . convert_mapping_to_xml ( reporter , data , mappings , fail_required = True )
yaml: rich-text-publisher this plugin puts custom rich text message to the build pages and job main page .