Class Token
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
com.sonyericsson.jenkins.plugins.bfa.tokens.Token
- All Implemented Interfaces:
ExtensionPoint
@Extension(optional=true)
public class Token
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
The Build Failure Analyzer token for TokenMacro consumers.
- Author:
- K. R. Walker <krwalker@stellarscience.com>
-
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
Fields 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) evaluate(Run<?, ?> run, FilePath workspace, TaskListener listener, String macroName) booleanvoidsetIncludeIndications(boolean includeIndications) voidsetIncludeTitle(boolean includeTitle) voidsetNoFailureText(String noFailureText) voidsetUseHtmlFormat(boolean useHtmlFormat) voidsetWrapWidth(int wrapWidth) Methods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
evaluate, evaluate, hasNestedContentMethods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacro
all, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAcceptedMacroNames, getAutoCompleteList, getPreviousRun, getWorkspace
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
setIncludeIndications
public void setIncludeIndications(boolean includeIndications) - Parameters:
includeIndications- When true, the indication numbers and links into the console log are included in the token replacement text.
-
setUseHtmlFormat
public void setUseHtmlFormat(boolean useHtmlFormat) - Parameters:
useHtmlFormat- When true, the replacement text will be an HTML snippet.
-
setIncludeTitle
public void setIncludeTitle(boolean includeTitle) - Parameters:
includeTitle- When true, the title will appear in the token replacement text.
-
setWrapWidth
public void setWrapWidth(int wrapWidth) - Parameters:
wrapWidth- Wrap long lines at this width. If wrapWidth is 0, the text isn't wrapped. Only applies if useHtmlFormat == false.
-
setNoFailureText
- Parameters:
noFailureText- Text to return when no failure cause is present.
-
acceptsMacroName
- Specified by:
acceptsMacroNamein classorg.jenkinsci.plugins.tokenmacro.TokenMacro
-
handlesHtmlEscapeInternally
public boolean handlesHtmlEscapeInternally()- Overrides:
handlesHtmlEscapeInternallyin classorg.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
-
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 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
-