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 Summary
Constructors Constructor Description ConsoleDetail(Run<?,?> owner, Stream<String> consoleLog, int from, int to)
Creates a new instance of this console log viewer object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Run<?,?>
getOwner()
Returns the build as owner of this view.String
getSourceCode()
Returns the line that should be highlighted.
-
-
-
Constructor Detail
-
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 viewconsoleLog
- the lines of the console logfrom
- first line in the console logto
- last line in the console log
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
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
-
-