def javadoc(registry, xml_parent, data):
 root = XML.SubElement(xml_parent, 'hudson.tasks.JavadocArchiver')
 if ('directory' in data):
  XML.SubElement(root, 'javadocDir').text = data.get('directory', '')
 XML.SubElement(root, 'keepAll').text = str(data.get('keep-all-successful', False)).lower()

def javadoc ( registry , xml_parent , data ) : root = XML . SubElement ( xml_parent , 'hudson.tasks.JavadocArchiver' ) if ( 'directory' in data ) : XML . SubElement ( root , 'javadocDir' ) . text = data . get ( 'directory' , '' ) XML . SubElement ( root , 'keepAll' ) . text = str ( data . get ( 'keep-all-successful' , False ) ) . lower ( )
yaml: javadoc publish javadoc requires the jenkins :jenkins-wiki:javadoc plugin <javadoc+plugin> .