Package hudson.plugins.chucknorris
Class FactNote
- All Implemented Interfaces:
ExtensionPoint,Describable<ConsoleNote<?>>,Serializable
Marks the fact line in the build log so that it is shown in the viewer's language.
The log is written while the build runs, before anyone views it, so the line itself is in the controller's
default language. When the console is shown in a browser, this note swaps in the same fact in the browser's
language, matching the build page. The plain text log (consoleText) keeps the original line.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRegisters the note with Jenkins.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.console.ConsoleNote
INSECURE, POSTAMBLE, POSTAMBLE_STR, PREAMBLE, PREAMBLE_STR -
Method Summary
Modifier and TypeMethodDescriptionannotate(Object context, MarkupText text, int charPos) static StringEncodes the fact line with a note in front of it.Methods inherited from class hudson.console.ConsoleNote
encode, encodeTo, encodeTo, findPreamble, getDescriptor, readFrom, removeNotes, removeNotes, skip
-
Method Details
-
encodeTo
Encodes the fact line with a note in front of it.- Parameters:
factIndex- the fact indexline- the fact line, in the controller's default language- Returns:
- the line to print to the build log
-
annotate
- Specified by:
annotatein classConsoleNote<Object>
-