@Extension public final class LogRegExMacro extends DataBoundTokenMacro
DataBoundTokenMacro.Parameter| Modifier and Type | Field and Description |
|---|---|
String |
charset
Charset to be used in order to read logs from the file.
|
String |
regex |
String |
replacement |
| Constructor and Description |
|---|
LogRegExMacro() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsMacroName(String macroName)
Returns true if this object can evaluate the macro of the given name.
|
String |
evaluate(hudson.model.AbstractBuild<?,?> context,
hudson.model.TaskListener listener,
String macroName) |
String |
evaluate(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
String macroName) |
List<String> |
getAcceptedMacroNames() |
String |
readLogFile(File file) |
evaluate, evaluate, hasNestedContentall, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAutoCompleteList, getPreviousRun, getWorkspacepublic String regex
public String replacement
public String charset
public boolean acceptsMacroName(String macroName)
TokenMacroacceptsMacroName in class TokenMacromacroName - By convention we encourage all caps name.TokenMacro.evaluate(AbstractBuild, TaskListener, String, Map, ListMultimap) called.public List<String> getAcceptedMacroNames()
getAcceptedMacroNames in class TokenMacropublic String evaluate(hudson.model.AbstractBuild<?,?> context, hudson.model.TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException
evaluate in class DataBoundTokenMacroMacroEvaluationExceptionIOExceptionInterruptedExceptionpublic String evaluate(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException
evaluate in class DataBoundTokenMacroMacroEvaluationExceptionIOExceptionInterruptedExceptionpublic String readLogFile(File file) throws IOException
IOExceptionCopyright © 2016. All rights reserved.