def text_finder(registry, xml_parent, data):
 finder = XML.SubElement(xml_parent, 'hudson.plugins.textfinder.TextFinderPublisher')
 if ('fileset' in data):
  XML.SubElement(finder, 'fileSet').text = data['fileset']
 XML.SubElement(finder, 'regexp').text = data['regexp']
 check_output = str(data.get('also-check-console-output', False)).lower()
 XML.SubElement(finder, 'alsoCheckConsoleOutput').text = check_output
 succeed_if_found = str(data.get('succeed-if-found', False)).lower()
 XML.SubElement(finder, 'succeedIfFound').text = succeed_if_found
 unstable_if_found = str(data.get('unstable-if-found', False)).lower()
 XML.SubElement(finder, 'unstableIfFound').text = unstable_if_found

def text_finder ( registry , xml_parent , data ) : finder = XML . SubElement ( xml_parent , 'hudson.plugins.textfinder.TextFinderPublisher' ) if ( 'fileset' in data ) : XML . SubElement ( finder , 'fileSet' ) . text = data [ 'fileset' ] XML . SubElement ( finder , 'regexp' ) . text = data [ 'regexp' ] check_output = str ( data . get ( 'also-check-console-output' , False ) ) . lower ( ) XML . SubElement ( finder , 'alsoCheckConsoleOutput' ) . text = check_output succeed_if_found = str ( data . get ( 'succeed-if-found' , False ) ) . lower ( ) XML . SubElement ( finder , 'succeedIfFound' ) . text = succeed_if_found unstable_if_found = str ( data . get ( 'unstable-if-found' , False ) ) . lower ( ) XML . SubElement ( finder , 'unstableIfFound' ) . text = unstable_if_found
yaml: text-finder this plugin lets you search keywords in the files you specified and additionally check build status requires the jenkins :jenkins-wiki:text-finder plugin <text-finder+plugin> .