def batch_tasks(registry, xml_parent, data):
 pdef = XML.SubElement(xml_parent, 'hudson.plugins.batch__task.BatchTaskProperty')
 tasks = XML.SubElement(pdef, 'tasks')
 for task in data:
  batch_task = XML.SubElement(tasks, 'hudson.plugins.batch__task.BatchTask')
  XML.SubElement(batch_task, 'name').text = task['name']
  XML.SubElement(batch_task, 'script').text = task['script']

def batch_tasks ( registry , xml_parent , data ) : pdef = XML . SubElement ( xml_parent , 'hudson.plugins.batch__task.BatchTaskProperty' ) tasks = XML . SubElement ( pdef , 'tasks' ) for task in data : batch_task = XML . SubElement ( tasks , 'hudson.plugins.batch__task.BatchTask' ) XML . SubElement ( batch_task , 'name' ) . text = task [ 'name' ] XML . SubElement ( batch_task , 'script' ) . text = task [ 'script' ]
yaml: batch-tasks batch tasks can be tasks for events like releases .