org.paylogic.jenkins
Class LogMessageSearcher
java.lang.Object
org.paylogic.jenkins.LogMessageSearcher
public class LogMessageSearcher
- extends Object
Helper class that searches for reportable messages in build log.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MESSAGE_KEYWORD
public static String DEFAULT_MESSAGE_KEYWORD
LogMessageSearcher
public LogMessageSearcher(hudson.model.AbstractBuild build)
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.