@Extension(optional=true)
public class Token
extends org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
Constructor and Description |
---|
Token() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsMacroName(String macroName) |
String |
evaluate(hudson.model.AbstractBuild<?,?> build,
hudson.model.TaskListener listener,
String macroName) |
String |
evaluate(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
String macroName) |
void |
setIncludeIndications(boolean includeIndications) |
void |
setIncludeTitle(boolean includeTitle) |
void |
setNoFailureText(String noFailureText) |
void |
setUseHtmlFormat(boolean useHtmlFormat) |
void |
setWrapWidth(int wrapWidth) |
evaluate, evaluate, hasNestedContent
public void setIncludeIndications(boolean includeIndications)
includeIndications
- When true, the indication numbers and links into the console log are included
in the token replacement text.public void setUseHtmlFormat(boolean useHtmlFormat)
useHtmlFormat
- When true, the replacement text will be an HTML snippet.public void setIncludeTitle(boolean includeTitle)
includeTitle
- When true, the title will appear in the token replacement text.public void setWrapWidth(int wrapWidth)
wrapWidth
- Wrap long lines at this width. If wrapWidth is 0, the text isn't wrapped. Only applies if
useHtmlFormat == false.public void setNoFailureText(String noFailureText)
noFailureText
- Text to return when no failure cause is present.public boolean acceptsMacroName(String macroName)
acceptsMacroName
in class org.jenkinsci.plugins.tokenmacro.TokenMacro
public String evaluate(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException
evaluate
in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
InterruptedException
public String evaluate(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String macroName) throws org.jenkinsci.plugins.tokenmacro.MacroEvaluationException, IOException, InterruptedException
evaluate
in class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.MacroEvaluationException
IOException
InterruptedException
Copyright © 2016–2021. All rights reserved.