def hue_light(registry, xml_parent, data):
 hue_light = XML.SubElement(xml_parent, 'org.jenkinsci.plugins.hue__light.LightNotifier')
 hue_light.set('plugin', 'hue-light')
 lightId = XML.SubElement(hue_light, 'lightId')
 id_mapping = [('light-id', 'string', None)]
 helpers.convert_mapping_to_xml(lightId, data, id_mapping, fail_required=True)
 build_mapping = [('pre-build', 'preBuild', 'blue'), ('good-build', 'goodBuild', 'green'), ('unstable-build', 'unstableBuild', 'yellow'), ('bad-build', 'badBuild', 'red')]
 helpers.convert_mapping_to_xml(hue_light, data, build_mapping, fail_required=True)

def hue_light ( registry , xml_parent , data ) : hue_light = XML . SubElement ( xml_parent , 'org.jenkinsci.plugins.hue__light.LightNotifier' ) hue_light . set ( 'plugin' , 'hue-light' ) lightId = XML . SubElement ( hue_light , 'lightId' ) id_mapping = [ ( 'light-id' , 'string' , None ) ] helpers . convert_mapping_to_xml ( lightId , data , id_mapping , fail_required = True ) build_mapping = [ ( 'pre-build' , 'preBuild' , 'blue' ) , ( 'good-build' , 'goodBuild' , 'green' ) , ( 'unstable-build' , 'unstableBuild' , 'yellow' ) , ( 'bad-build' , 'badBuild' , 'red' ) ] helpers . convert_mapping_to_xml ( hue_light , data , build_mapping , fail_required = True )
yaml: hue-light this plugin shows the state of your builds using the awesome philips hue lights .