def phabricator(registry, xml_parent, data):
 root = XML.SubElement(xml_parent, 'com.uber.jenkins.phabricator.PhabricatorNotifier')
 if ('comment-on-success' in data):
  XML.SubElement(root, 'commentOnSuccess').text = str(data.get('comment-on-success')).lower()
 if ('uberalls-enabled' in data):
  XML.SubElement(root, 'uberallsEnabled').text = str(data.get('uberalls-enabled')).lower()
 if ('comment-file' in data):
  XML.SubElement(root, 'commentFile').text = data.get('comment-file')
 if ('comment-size' in data):
  XML.SubElement(root, 'commentSize').text = str(data.get('comment-size'))
 if ('comment-with-console-link-on-failure' in data):
  XML.SubElement(root, 'commentWithConsoleLinkOnFailure').text = str(data.get('comment-with-console-link-on-failure')).lower()

def phabricator ( registry , xml_parent , data ) : root = XML . SubElement ( xml_parent , 'com.uber.jenkins.phabricator.PhabricatorNotifier' ) if ( 'comment-on-success' in data ) : XML . SubElement ( root , 'commentOnSuccess' ) . text = str ( data . get ( 'comment-on-success' ) ) . lower ( ) if ( 'uberalls-enabled' in data ) : XML . SubElement ( root , 'uberallsEnabled' ) . text = str ( data . get ( 'uberalls-enabled' ) ) . lower ( ) if ( 'comment-file' in data ) : XML . SubElement ( root , 'commentFile' ) . text = data . get ( 'comment-file' ) if ( 'comment-size' in data ) : XML . SubElement ( root , 'commentSize' ) . text = str ( data . get ( 'comment-size' ) ) if ( 'comment-with-console-link-on-failure' in data ) : XML . SubElement ( root , 'commentWithConsoleLinkOnFailure' ) . text = str ( data . get ( 'comment-with-console-link-on-failure' ) ) . lower ( )
yaml: phabricator integrate with phabricator <URL requires the jenkins :jenkins-wiki:phabricator plugin <phabricator+differential+plugin> .