def version_number(parser, xml_parent, data):
 version_number = XML.SubElement(xml_parent, 'org.jvnet.hudson.tools.versionnumber.VersionNumberBuilder')
 mapping = [('variable-name', 'environmentVariableName', None), ('format-string', 'versionNumberString', None), ('skip-failed-builds', 'skipFailedBuilds', False), ('display-name', 'useAsBuildDisplayName', False), ('start-date', 'projectStartDate', '1970-1-1 00:00:00.0 UTC'), ('builds-today', 'oBuildsToday', '-1'), ('builds-this-month', 'oBuildsThisMonth', '-1'), ('builds-this-year', 'oBuildsThisYear', '-1'), ('builds-all-time', 'oBuildsAllTime', '-1')]
 convert_mapping_to_xml(version_number, data, mapping, fail_required=True)

def version_number ( parser , xml_parent , data ) : version_number = XML . SubElement ( xml_parent , 'org.jvnet.hudson.tools.versionnumber.VersionNumberBuilder' ) mapping = [ ( 'variable-name' , 'environmentVariableName' , None ) , ( 'format-string' , 'versionNumberString' , None ) , ( 'skip-failed-builds' , 'skipFailedBuilds' , False ) , ( 'display-name' , 'useAsBuildDisplayName' , False ) , ( 'start-date' , 'projectStartDate' , '1970-1-1 00:00:00.0 UTC' ) , ( 'builds-today' , 'oBuildsToday' , '-1' ) , ( 'builds-this-month' , 'oBuildsThisMonth' , '-1' ) , ( 'builds-this-year' , 'oBuildsThisYear' , '-1' ) , ( 'builds-all-time' , 'oBuildsAllTime' , '-1' ) ] convert_mapping_to_xml ( version_number , data , mapping , fail_required = True )
yaml: version-number generate a version number for the build using a format string .