Merge "Update matrix_tie_parent to use convert_xml()"

This commit is contained in:
Jenkins 2017-07-10 05:12:35 +00:00 committed by Gerrit Code Review
commit f76d085e99
1 changed files with 3 additions and 2 deletions

View File

@ -1560,14 +1560,15 @@ def matrix_tie_parent(registry, xml_parent, data):
You can use the top level ``node`` parameter to control where the parent
job is tied in Jenkins 1.532 and higher.
:arg str node: Name of the node.
:arg str node: Name of the node (required)
Example:
.. literalinclude:: /../../tests/wrappers/fixtures/matrix-tie-parent.yaml
"""
mtp = XML.SubElement(xml_parent, 'matrixtieparent.BuildWrapperMtp')
XML.SubElement(mtp, 'labelName').text = data['node']
mapping = [('node', 'labelName', None)]
convert_mapping_to_xml(mtp, data, mapping, fail_required=True)
def exclusion(registry, xml_parent, data):