def build_name_setter(registry, xml_parent, data):
 build_name_setter = XML.SubElement(xml_parent, 'org.jenkinsci.plugins.buildnameupdater.BuildNameUpdater')
 mapping = [('name', 'buildName', 'version.txt'), ('template', 'macroTemplate', '#${BUILD_NUMBER}'), ('file', 'fromFile', False), ('macro', 'fromMacro', False), ('macro-first', 'macroFirst', False)]
 convert_mapping_to_xml(build_name_setter, data, mapping, fail_required=True)

def build_name_setter ( registry , xml_parent , data ) : build_name_setter = XML . SubElement ( xml_parent , 'org.jenkinsci.plugins.buildnameupdater.BuildNameUpdater' ) mapping = [ ( 'name' , 'buildName' , 'version.txt' ) , ( 'template' , 'macroTemplate' , '#${BUILD_NUMBER}' ) , ( 'file' , 'fromFile' , False ) , ( 'macro' , 'fromMacro' , False ) , ( 'macro-first' , 'macroFirst' , False ) ] convert_mapping_to_xml ( build_name_setter , data , mapping , fail_required = True )
yaml: build-name-setter define build name setter options which allows your build name to be updated during the build process .