Merge "Update zeromq_event to make use of convert_mapping_to_xml()"

This commit is contained in:
Jenkins 2017-06-30 03:04:36 +00:00 committed by Gerrit Code Review
commit 7adf73ef1b

View File

@ -706,7 +706,9 @@ def zeromq_event(registry, xml_parent, data):
zmq_event = XML.SubElement(xml_parent,
'org.jenkinsci.plugins.'
'ZMQEventPublisher.HudsonNotificationProperty')
XML.SubElement(zmq_event, 'enabled').text = 'true'
mapping = [('', 'enabled', True)]
helpers.convert_mapping_to_xml(
zmq_event, data, mapping, fail_required=True)
def slack(registry, xml_parent, data):