Class ConsoleDetail

java.lang.Object
io.jenkins.plugins.analysis.core.model.ConsoleDetail
All Implemented Interfaces:
ModelObject

public class ConsoleDetail extends Object implements ModelObject
Renders a section of the console log.
Author:
Ullrich Hafner
  • Constructor Details

    • ConsoleDetail

      public ConsoleDetail(Run<?,?> owner, Stream<String> consoleLog, int from, int to)
      Creates a new instance of this console log viewer object.
      Parameters:
      owner - the current build as owner of this view
      consoleLog - the lines of the console log
      from - first line in the console log
      to - last line in the console log
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
    • getOwner

      public Run<?,?> getOwner()
      Returns the build as owner of this view.
      Returns:
      the build
    • getSourceCode

      public String getSourceCode()
      Returns the line that should be highlighted.
      Returns:
      the line to highlight