org.paylogic.jenkins
Class LogMessageSearcher

java.lang.Object
  extended by org.paylogic.jenkins.LogMessageSearcher

public class LogMessageSearcher
extends Object

Helper class that searches for reportable messages in build log.


Field Summary
static String DEFAULT_MESSAGE_KEYWORD
           
 
Constructor Summary
LogMessageSearcher(hudson.model.AbstractBuild build)
           
 
Method Summary
static String getMessagePrefix()
           
static void logMessage(hudson.model.BuildListener listener, String message)
          Logs a message that is later findable by the searcher part of this class.
 List<String> searchForMessages()
           
 List<String> searchForMessages(String keyword)
          Searches build log for messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGE_KEYWORD

public static String DEFAULT_MESSAGE_KEYWORD
Constructor Detail

LogMessageSearcher

public LogMessageSearcher(hudson.model.AbstractBuild build)
Method Detail

logMessage

public static void logMessage(hudson.model.BuildListener listener,
                              String message)
Logs a message that is later findable by the searcher part of this class.

Parameters:
listener -
message -

getMessagePrefix

public static String getMessagePrefix()

searchForMessages

public List<String> searchForMessages()
                               throws IOException
Throws:
IOException

searchForMessages

public List<String> searchForMessages(String keyword)
                               throws IOException
Searches build log for messages.

Parameters:
keyword - Keyword to look for in log.
Returns:
List of messages found.
Throws:
IOException


Copyright © 2004-2014. All Rights Reserved.