@Extension public class WorkspaceFileMacro extends DataBoundTokenMacro
DataBoundTokenMacro.Parameter
Modifier and Type | Field and Description |
---|---|
String |
fileNotFoundMessage |
static String |
MACRO_NAME |
int |
maxLines |
String |
path |
Constructor and Description |
---|
WorkspaceFileMacro() |
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() |
boolean |
hasNestedContent()
Returns true if this object allows for nested content replacements.
|
evaluate, evaluate
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAutoCompleteList, getPreviousRun, getWorkspace
public String path
public String fileNotFoundMessage
public int maxLines
public static final String MACRO_NAME
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<?,?> context, 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
public boolean hasNestedContent()
TokenMacro
hasNestedContent
in class DataBoundTokenMacro
TokenMacro.expand(AbstractBuild, TaskListener, String)
for additional expansion.Copyright © 2016–2018. All rights reserved.