Class AbstractTestReport

    • Constructor Detail

      • AbstractTestReport

        public AbstractTestReport​(String id,
                                  String title)
        Instantiates a new AbstractTestReport.
        Parameters:
        id - the id used in report URL
        title - the report title
    • Method Detail

      • getId

        public String getId()
      • getTitle

        public String getTitle()
      • getSubReports

        public List<AbstractTestReport> getSubReports()
        Gets the sub-reports.
        Returns:
        the subReports
      • addSubReport

        public void addSubReport​(AbstractTestReport subReport)
        Adds a sub-report.
        Parameters:
        subReport - the subReport to add
      • addSubReports

        public void addSubReports​(List<AbstractTestReport> subReports)
        Adds a bundle of sub-reports.
        Parameters:
        subReports - the subReports to add
      • getUrl

        public String getUrl()
      • getBuild

        public Run<?,​?> getBuild​(org.kohsuke.stapler.StaplerRequest req)
        Description copied from class: AbstractRequestHandler
        Gets the build that have report artifacts this action handles.

        If called in a project context, returns the last build that contains report artifacts.

        Specified by:
        getBuild in class AbstractRequestHandler
        Parameters:
        req - the StaplerRequest used for access this action
        Returns:
        the build with report artifacts to handle or null if no proper build exists