Class ByIdResultSelector
- java.lang.Object
-
- io.jenkins.plugins.reporter.model.ByIdResultSelector
-
- All Implemented Interfaces:
ResultSelector
public class ByIdResultSelector extends Object implements ResultSelector
-
-
Constructor Summary
Constructors Constructor Description ByIdResultSelector(String id)
Creates a new instance ofByIdResultSelector
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ReportAction>
get(Run<?,?> build)
Tries to find a report action of the specified build that should be used to compute the history.
-
-
-
Constructor Detail
-
ByIdResultSelector
public ByIdResultSelector(String id)
Creates a new instance ofByIdResultSelector
.- Parameters:
id
- the ID of the result
-
-
Method Detail
-
get
public Optional<ReportAction> get(Run<?,?> build)
Description copied from interface:ResultSelector
Tries to find a report action of the specified build that should be used to compute the history.- Specified by:
get
in interfaceResultSelector
- Parameters:
build
- the build- Returns:
- the report action, if there is one attached to the job
-
-