Merge "Update build_name to use convert_mapping_to_xml()"

This commit is contained in:
Jenkins 2017-07-10 05:13:01 +00:00 committed by Gerrit Code Review
commit 8ad2e2922b
1 changed files with 2 additions and 1 deletions

View File

@ -813,7 +813,8 @@ def build_name(registry, xml_parent, data):
bsetter = XML.SubElement(xml_parent,
'org.jenkinsci.plugins.buildnamesetter.'
'BuildNameSetter')
XML.SubElement(bsetter, 'template').text = data['name']
mapping = [('name', 'template', None)]
convert_mapping_to_xml(bsetter, data, mapping, fail_required=True)
def port_allocator(registry, xml_parent, data):