def random_string_param(registry, xml_parent, data):
 pdef = XML.SubElement(xml_parent, 'hudson.plugins.random__string__parameter.RandomStringParameterDefinition')
 if ('name' not in data):
  raise JenkinsJobsException('random-string must have a name parameter.')
 XML.SubElement(pdef, 'name').text = data['name']
 XML.SubElement(pdef, 'description').text = data.get('description', '')
 XML.SubElement(pdef, 'failedValidationMessage').text = data.get('failed-validation-message', '')

def random_string_param ( registry , xml_parent , data ) : pdef = XML . SubElement ( xml_parent , 'hudson.plugins.random__string__parameter.RandomStringParameterDefinition' ) if ( 'name' not in data ) : raise JenkinsJobsException ( 'random-string must have a name parameter.' ) XML . SubElement ( pdef , 'name' ) . text = data [ 'name' ] XML . SubElement ( pdef , 'description' ) . text = data . get ( 'description' , '' ) XML . SubElement ( pdef , 'failedValidationMessage' ) . text = data . get ( 'failed-validation-message' , '' )
yaml: random-string this parameter generates a random string and passes it to the build .