@Extension public class BuildLogRegexMacro extends DataBoundTokenMacro
DataBoundTokenMacro.Parameter
Modifier and Type | Field and Description |
---|---|
boolean |
addNewline |
String |
defaultValue |
boolean |
escapeHtml |
boolean |
greedy |
static int |
LINES_AFTER_DEFAULT_VALUE |
static int |
LINES_BEFORE_DEFAULT_VALUE |
int |
linesAfter |
int |
linesBefore |
static String |
MACRO_NAME |
String |
matchedLineHtmlStyle |
static int |
MAX_LINE_LENGTH_DEFAULT_VALUE |
static int |
MAX_MATCHES_DEFAULT_VALUE |
static int |
MAX_TAIL_MATCHES_DEFAULT_VALUE |
int |
maxLineLength |
int |
maxMatches |
int |
maxTailMatches |
String |
regex |
boolean |
showTruncatedLines |
String |
substText |
Constructor and Description |
---|
BuildLogRegexMacro() |
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<?,?> build,
hudson.model.TaskListener listener,
String macroName) |
String |
evaluate(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
String macroName) |
List<String> |
getAcceptedMacroNames() |
evaluate, evaluate, hasNestedContent
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAutoCompleteList, getPreviousRun, getWorkspace
public static final String MACRO_NAME
public static final int LINES_BEFORE_DEFAULT_VALUE
public static final int LINES_AFTER_DEFAULT_VALUE
public static final int MAX_MATCHES_DEFAULT_VALUE
public static final int MAX_TAIL_MATCHES_DEFAULT_VALUE
public static final int MAX_LINE_LENGTH_DEFAULT_VALUE
public String regex
public int linesBefore
public int linesAfter
public int maxMatches
public boolean showTruncatedLines
public String substText
public boolean escapeHtml
public String matchedLineHtmlStyle
public boolean addNewline
public String defaultValue
public boolean greedy
public int maxTailMatches
public int maxLineLength
public boolean acceptsMacroName(String macroName)
TokenMacro
acceptsMacroName
in class TokenMacro
macroName
- By convention we encourage all caps name.TokenMacro.evaluate(AbstractBuild, TaskListener, String, Map, ListMultimap)
called.public List<String> getAcceptedMacroNames()
getAcceptedMacroNames
in class TokenMacro
public String evaluate(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException
evaluate
in class DataBoundTokenMacro
MacroEvaluationException
IOException
InterruptedException
public String evaluate(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException
evaluate
in class DataBoundTokenMacro
MacroEvaluationException
IOException
InterruptedException
Copyright © 2016–2022. All rights reserved.