def mongo_db(registry, xml_parent, data):
 mongodb = XML.SubElement(xml_parent, 'org.jenkinsci.plugins.mongodb.MongoBuildWrapper')
 mongodb.set('plugin', 'mongodb')
 mapping = [('name', 'mongodbName', None), ('port', 'port', ''), ('data-directory', 'dbpath', ''), ('startup-params', 'parameters', ''), ('start-timeout', 'startTimeout', 0)]
 convert_mapping_to_xml(mongodb, data, mapping, fail_required=True)

def mongo_db ( registry , xml_parent , data ) : mongodb = XML . SubElement ( xml_parent , 'org.jenkinsci.plugins.mongodb.MongoBuildWrapper' ) mongodb . set ( 'plugin' , 'mongodb' ) mapping = [ ( 'name' , 'mongodbName' , None ) , ( 'port' , 'port' , '' ) , ( 'data-directory' , 'dbpath' , '' ) , ( 'startup-params' , 'parameters' , '' ) , ( 'start-timeout' , 'startTimeout' , 0 ) ] convert_mapping_to_xml ( mongodb , data , mapping , fail_required = True )
yaml: mongo-db build wrapper initalizes a mongodb database while running the build .