Class ScriptlerTokenMacro
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.scriptler.tokenmacro.ScriptlerTokenMacro
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class ScriptlerTokenMacro
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
TokenMacro that allows the execution of a scriptler script an any arbitrary location supporting TokenMacros e.g.
${SCRIPTLER, scriptId="superscript.groovy"}
- Author:
- Dominik Bartholdi (imod)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.Parameter
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
escapeHtml
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptsMacroName
(String macroName) evaluate
(AbstractBuild<?, ?> context, TaskListener listener, String macroName) Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, evaluate, handlesHtmlEscapeInternally, hasNestedContent
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAcceptedMacroNames, getAutoCompleteList, getPreviousRun, getWorkspace
-
Field Details
-
scriptId
-
-
Constructor Details
-
ScriptlerTokenMacro
public ScriptlerTokenMacro()
-
-
Method Details
-
evaluate
public String evaluate(AbstractBuild<?, ?> context, TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException- Specified by:
evaluate
in classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
- Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
InterruptedException
-
acceptsMacroName
- Specified by:
acceptsMacroName
in classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-