Class ByIdResultSelector

java.lang.Object
io.jenkins.plugins.analysis.core.model.ByIdResultSelector
All Implemented Interfaces:
ResultSelector

public class ByIdResultSelector extends Object implements ResultSelector
Selects actions using the specific ID of an action.
Author:
Ullrich Hafner
  • Constructor Details

    • ByIdResultSelector

      public ByIdResultSelector(String id)
      Creates a new instance of ByIdResultSelector.
      Parameters:
      id - the ID of the result
  • Method Details

    • get

      public Optional<ResultAction> get(Run<?,?> build)
      Description copied from interface: ResultSelector
      Tries to find a result action of the specified build that should be used to compute the history.
      Specified by:
      get in interface ResultSelector
      Parameters:
      build - the build
      Returns:
      the result action, if there is one attached to the job
    • toString

      public String toString()
      Overrides:
      toString in class Object