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.ParameterNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
escapeHtml -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsMacroName(String macroName) evaluate(AbstractBuild<?, ?> build, TaskListener listener, String macroName) abstract Stringevaluate(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) protected StringgenerateMissingFile(String type, String fileName) protected StringgetCharset(Run<?, ?> build) protected InputStreamgetFileInputStream(Run<?, ?> run, FilePath workspace, String fileName, String extension) protected abstract Class<? extends org.jenkinsci.lib.configprovider.ConfigProvider>booleanstatic booleanisApprovedScript(String script, org.jenkinsci.plugins.scriptsecurity.scripts.Language language) static booleanstatic FileMethods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, handlesHtmlEscapeInternallyMethods 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:
evaluatein classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro- Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationExceptionIOExceptionInterruptedException
-
evaluate
public abstract String evaluate(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException- Overrides:
evaluatein classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro- Throws:
org.jenkinsci.plugins.tokenmacro.MacroEvaluationExceptionIOExceptionInterruptedException
-
acceptsMacroName
- Specified by:
acceptsMacroNamein classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-
scriptsFolder
-
getProviderClass
protected abstract Class<? extends org.jenkinsci.lib.configprovider.ConfigProvider> getProviderClass() -
hasNestedContent
public boolean hasNestedContent()- Overrides:
hasNestedContentin classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
getFileInputStream
protected InputStream getFileInputStream(Run<?, ?> run, FilePath workspace, String fileName, String extension) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
isChildOf
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean isChildOf(FilePath potentialChild, FilePath parent) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
generateMissingFile
-
getCharset
-
isApprovedScript
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean isApprovedScript(String script, org.jenkinsci.plugins.scriptsecurity.scripts.Language language)
-