Class FactNote

java.lang.Object
hudson.console.ConsoleNote<Object>
hudson.plugins.chucknorris.FactNote
All Implemented Interfaces:
ExtensionPoint, Describable<ConsoleNote<?>>, Serializable

public class FactNote extends ConsoleNote<Object>
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:
  • Method Details

    • encodeTo

      public static String encodeTo(int factIndex, String line)
      Encodes the fact line with a note in front of it.
      Parameters:
      factIndex - the fact index
      line - the fact line, in the controller's default language
      Returns:
      the line to print to the build log
    • annotate

      public ConsoleAnnotator<Object> annotate(Object context, MarkupText text, int charPos)
      Specified by:
      annotate in class ConsoleNote<Object>