def ansicolor(registry, xml_parent, data):
 cwrapper = XML.SubElement(xml_parent, 'hudson.plugins.ansicolor.AnsiColorBuildWrapper')
 colormap = data.get('colormap')
 if colormap:
  XML.SubElement(cwrapper, 'colorMapName').text = colormap

def ansicolor ( registry , xml_parent , data ) : cwrapper = XML . SubElement ( xml_parent , 'hudson.plugins.ansicolor.AnsiColorBuildWrapper' ) colormap = data . get ( 'colormap' ) if colormap : XML . SubElement ( cwrapper , 'colorMapName' ) . text = colormap
yaml: ansicolor translate ansi color codes to html in the console log .