Class ATXBuildAction<T extends AbstractTestReport>
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
-
- de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportAction
-
- de.tracetronic.jenkins.plugins.ecutest.report.atx.AbstractATXAction
-
- de.tracetronic.jenkins.plugins.ecutest.report.atx.ATXBuildAction<T>
-
- Type Parameters:
T
- the report type, eitherATXReport
orATXZipReport
- All Implemented Interfaces:
Action
,ModelObject
,SimpleBuildStep.LastBuildAction
,IconSpec
public class ATXBuildAction<T extends AbstractTestReport> extends AbstractATXAction implements SimpleBuildStep.LastBuildAction
Action to show a link toATXReport
s orATXZipReport
s at the build page.
-
-
Constructor Summary
Constructors Constructor Description ATXBuildAction(boolean projectLevel)
Instantiates a newATXBuildAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T report)
Adds a ATX report.void
addAll(Collection<T> reports)
Adds a bundle of ATX reports.List<T>
getATXReports()
Gets the ATX reports.String
getDisplayName()
T
getDynamic(String token)
ReturnsATXReport
specified by the URL.Collection<? extends Action>
getProjectActions()
boolean
hasArchivedReports()
Specifies whether this action holds archivedATXZipReport
s.-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.atx.AbstractATXAction
getIconClassName, getLastReportBuild, getReportIconClassName, getTrendIconClassName, getUrlName
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractReportAction
getArchiveTargetDir, getBuild, getIconFileName, isProjectLevel
-
Methods inherited from class de.tracetronic.jenkins.plugins.ecutest.report.AbstractRequestHandler
doZipDownload, getAnchestorBuild, getAnchestorProject, getBuildAction, getOwner
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getIconFileName, getUrlName
-
-
-
-
Constructor Detail
-
ATXBuildAction
public ATXBuildAction(boolean projectLevel)
Instantiates a newATXBuildAction
.- Parameters:
projectLevel
- specifies whether archiving is restricted to project level only
-
-
Method Detail
-
add
public void add(T report)
Adds a ATX report.- Parameters:
report
- the ATX report to add
-
addAll
public void addAll(Collection<T> reports)
Adds a bundle of ATX reports.- Parameters:
reports
- the collection of ATX reports
-
getDynamic
public T getDynamic(String token)
ReturnsATXReport
specified by the URL.- Parameters:
token
- the URL token- Returns:
- the
ATXReport
ornull
if no proper report exists
-
hasArchivedReports
public boolean hasArchivedReports()
Specifies whether this action holds archivedATXZipReport
s.- Returns:
true
if has archived reports,false
otherwise
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getProjectActions
public Collection<? extends Action> getProjectActions()
- Specified by:
getProjectActions
in interfaceSimpleBuildStep.LastBuildAction
-
-