Class AbstractEvalContent
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
hudson.plugins.emailext.plugins.content.AbstractEvalContent
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
JellyScriptContent
,ScriptContent
,TemplateContent
public abstract class AbstractEvalContent
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
- Author:
- acearl
-
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<?, ?> build, TaskListener listener, String macroName) abstract String
evaluate
(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) protected String
generateMissingFile
(String type, String fileName) protected String
getCharset
(Run<?, ?> build) protected InputStream
getFileInputStream
(Run<?, ?> run, FilePath workspace, String fileName, String extension) protected abstract Class<? extends org.jenkinsci.lib.configprovider.ConfigProvider>
boolean
static boolean
isApprovedScript
(String script, org.jenkinsci.plugins.scriptsecurity.scripts.Language language) static boolean
static File
Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, handlesHtmlEscapeInternally
Methods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAcceptedMacroNames, getAutoCompleteList, getPreviousRun, getWorkspace
-
Field Details
-
EMAIL_TEMPLATES_DIRECTORY
- See Also:
-
macroName
-
-
Constructor Details
-
AbstractEvalContent
-
-
Method Details
-
evaluate
public String evaluate(AbstractBuild<?, ?> build, 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
-
evaluate
public abstract String evaluate(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException- Overrides:
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
-
scriptsFolder
-
getProviderClass
protected abstract Class<? extends org.jenkinsci.lib.configprovider.ConfigProvider> getProviderClass() -
hasNestedContent
public boolean hasNestedContent()- Overrides:
hasNestedContent
in classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
getFileInputStream
protected InputStream getFileInputStream(Run<?, ?> run, FilePath workspace, String fileName, String extension) throws IOException, InterruptedException- Throws:
IOException
InterruptedException
-
isChildOf
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean isChildOf(FilePath potentialChild, FilePath parent) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
generateMissingFile
-
getCharset
-
isApprovedScript
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean isApprovedScript(String script, org.jenkinsci.plugins.scriptsecurity.scripts.Language language)
-