Package io.jenkins.plugins.explain_error
Class ExplanationLabels
java.lang.Object
io.jenkins.plugins.explain_error.ExplanationLabels
The fixed words around an explanation ("Summary", "How to fix it", ...), in the language the
explanation itself is written in.
The language setting is free text ("中文", "Chinese", "zh-CN", "Español"), so it is matched against the names and tags of the languages there are labels for. Anything else gets English, which is also what the labels were before they could be translated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExplanationLabelsforLanguage(String language) Labels for a language setting; English fornull, blank or a language without labels.generatedOn(String time) "Generated on ...", for the line under the explanation where the time is not shown elsewhere.Label of the best practices in the plain-text explanation.Heading of the best practices in the panel.Label of the log excerpt in the plain-text explanation.Heading of the steps in the panel.Label of the steps in the plain-text explanation.Label of the summary in the plain-text explanation.Heading of the log excerpt in the panel.linesAnalysed(int count) "n log lines analysed", for the line under the explanation.reusedFrom(int buildNumber) Says which earlier build an explanation was taken over from.
-
Method Details
-
forLanguage
Labels for a language setting; English fornull, blank or a language without labels. -
getSummary
Label of the summary in the plain-text explanation. -
getFailedSnippet
Label of the log excerpt in the plain-text explanation. -
getResolutionSteps
Label of the steps in the plain-text explanation. -
getBestPractices
Label of the best practices in the plain-text explanation. -
getBestPracticesHeading
Heading of the best practices in the panel. -
getHowToFix
Heading of the steps in the panel. -
getWhereItFailed
Heading of the log excerpt in the panel. -
linesAnalysed
"n log lines analysed", for the line under the explanation. -
reusedFrom
Says which earlier build an explanation was taken over from. -
generatedOn
"Generated on ...", for the line under the explanation where the time is not shown elsewhere.
-