Class AbstractTestReport
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractTestReport
-
- All Implemented Interfaces:
ModelObject
- Direct Known Subclasses:
AbstractArchiveFileReport
,ATXReport
public abstract class AbstractTestReport extends AbstractRequestHandler implements ModelObject
Common base class for several test reports created byAbstractReportPublisher
s.
-
-
Constructor Summary
Constructors Constructor Description AbstractTestReport(String id, String title)
Instantiates a newAbstractTestReport
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSubReport(AbstractTestReport subReport)
Adds a sub-report.void
addSubReports(List<AbstractTestReport> subReports)
Adds a bundle of sub-reports.Run<?,?>
getBuild(org.kohsuke.stapler.StaplerRequest req)
Gets the build that have report artifacts this action handles.String
getDisplayName()
String
getId()
List<AbstractTestReport>
getSubReports()
Gets the sub-reports.String
getTitle()
String
getUrl()
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
doZipDownload, getAnchestorBuild, getAnchestorProject, getArchiveTargetDir, getBuildAction, getOwner
-
-
-
-
Constructor Detail
-
AbstractTestReport
public AbstractTestReport(String id, String title)
Instantiates a newAbstractTestReport
.- Parameters:
id
- the id used in report URLtitle
- 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
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
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 classAbstractRequestHandler
- Parameters:
req
- theStaplerRequest
used for access this action- Returns:
- the build with report artifacts to handle or
null
if no proper build exists
-
-