def groovy(registry, xml_parent, data):
 root_tag = 'hudson.plugins.groovy.Groovy'
 groovy = XML.SubElement(xml_parent, root_tag)
 groovy.append(_groovy_common_scriptSource(data))
 XML.SubElement(groovy, 'groovyName').text = str(data.get('version', '(Default)'))
 XML.SubElement(groovy, 'parameters').text = str(data.get('parameters', ''))
 XML.SubElement(groovy, 'scriptParameters').text = str(data.get('script-parameters', ''))
 XML.SubElement(groovy, 'properties').text = str(data.get('properties', ''))
 XML.SubElement(groovy, 'javaOpts').text = str(data.get('java-opts', ''))
 XML.SubElement(groovy, 'classPath').text = str(data.get('class-path', ''))

def groovy ( registry , xml_parent , data ) : root_tag = 'hudson.plugins.groovy.Groovy' groovy = XML . SubElement ( xml_parent , root_tag ) groovy . append ( _groovy_common_scriptSource ( data ) ) XML . SubElement ( groovy , 'groovyName' ) . text = str ( data . get ( 'version' , '(Default)' ) ) XML . SubElement ( groovy , 'parameters' ) . text = str ( data . get ( 'parameters' , '' ) ) XML . SubElement ( groovy , 'scriptParameters' ) . text = str ( data . get ( 'script-parameters' , '' ) ) XML . SubElement ( groovy , 'properties' ) . text = str ( data . get ( 'properties' , '' ) ) XML . SubElement ( groovy , 'javaOpts' ) . text = str ( data . get ( 'java-opts' , '' ) ) XML . SubElement ( groovy , 'classPath' ) . text = str ( data . get ( 'class-path' , '' ) )
yaml: groovy execute a groovy script or command .