Class CloverReportLinker
java.lang.Object
com.atlassian.bamboo.clover.build.coverage.CloverReportLinker
- All Implemented Interfaces:
ReportProvider
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCloverReportLinker
(@NotNull ResultsSummary summary, @NotNull ArtifactLinkManager artifactLinkManager, @NotNull String baseUrl) -
Method Summary
Modifier and TypeMethodDescription@NotNull ImmutableResultsSummary
Returns build results@NotNull Collection<Artifact>
Returns a list of artifacts (shared and local) containing Clover HTML report.@Nullable String
Deprecated.since 5.7@Nullable String
getCloverReportUrl
(@NotNull Artifact artifact) Returns URL of the given report artifact.@NotNull String
Deprecated.since 5.7@NotNull String
getTimestamp
(@NotNull Artifact artifact) Returns timestamp of the given report artifact.boolean
isCloverAdgReport
(@NotNull Artifact artifact) Returnstrue
if given artifact contains Clover's HTML report in ADG style (introduced in Clover 4)boolean
isCloverReport
(@NotNull Artifact artifact) Returnstrue
if given artifact contains Clover's HTML report.
-
Field Details
-
REPORT_DATE_FORMAT
- See Also:
-
-
Constructor Details
-
CloverReportLinker
public CloverReportLinker(@NotNull @NotNull ResultsSummary summary, @NotNull @NotNull ArtifactLinkManager artifactLinkManager, @NotNull @NotNull String baseUrl)
-
-
Method Details
-
getCloverReportUrl
Deprecated.since 5.7Description copied from interface:ReportProvider
Return URL of the Clover's HTML report artifact from a build. In case when build contains many Clover reports, a first found will be returned.- Specified by:
getCloverReportUrl
in interfaceReportProvider
- Returns:
- String URL to Clover report or
null
if not exists
-
getCloverReportUrl
Description copied from interface:ReportProvider
Returns URL of the given report artifact.- Specified by:
getCloverReportUrl
in interfaceReportProvider
- Returns:
- String artifact URL or
null
if not exists
-
getBuildResultsSummary
Description copied from interface:ReportProvider
Returns build results- Specified by:
getBuildResultsSummary
in interfaceReportProvider
- Returns:
- ImmutableResultsSummary
-
getTimestamp
Deprecated.since 5.7Description copied from interface:ReportProvider
Returns timestamp of the Clover's HTML report artifact from a build. In case when build contains many Clover reports, a first found will be returned. If there are no Clover reports in build it returns empty string.- Specified by:
getTimestamp
in interfaceReportProvider
- Returns:
- String timestamp of Clover report or "" if not found
-
getTimestamp
Description copied from interface:ReportProvider
Returns timestamp of the given report artifact.- Specified by:
getTimestamp
in interfaceReportProvider
- Returns:
- String timestamp of Clover report or "" if not found
-
isCloverReport
Description copied from interface:ReportProvider
Returnstrue
if given artifact contains Clover's HTML report.- Specified by:
isCloverReport
in interfaceReportProvider
- Parameters:
artifact
- artifact to check- Returns:
- boolean
-
isCloverAdgReport
Description copied from interface:ReportProvider
Returnstrue
if given artifact contains Clover's HTML report in ADG style (introduced in Clover 4)- Specified by:
isCloverAdgReport
in interfaceReportProvider
- Parameters:
artifact
- artifact to check- Returns:
- boolean
-
getCloverArtifacts
Description copied from interface:ReportProvider
Returns a list of artifacts (shared and local) containing Clover HTML report.- Specified by:
getCloverArtifacts
in interfaceReportProvider
- Returns:
- Collection<Artifact> list of reports or empty list
-