Class CloverReportLinker
- java.lang.Object
-
- com.atlassian.bamboo.clover.build.coverage.CloverReportLinker
-
- All Implemented Interfaces:
ReportProvider
public class CloverReportLinker extends Object implements ReportProvider
-
-
Field Summary
Fields Modifier and Type Field Description static StringREPORT_DATE_FORMAT
-
Constructor Summary
Constructors Constructor Description CloverReportLinker(@NotNull ResultsSummary summary, @NotNull ArtifactLinkManager artifactLinkManager, @NotNull String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull ImmutableResultsSummarygetBuildResultsSummary()Returns build results@NotNull Collection<Artifact>getCloverArtifacts()Returns a list of artifacts (shared and local) containing Clover HTML report.@Nullable StringgetCloverReportUrl()Deprecated.since 5.7@Nullable StringgetCloverReportUrl(@NotNull Artifact artifact)Returns URL of the given report artifact.@NotNull StringgetTimestamp()Deprecated.since 5.7@NotNull StringgetTimestamp(@NotNull Artifact artifact)Returns timestamp of the given report artifact.booleanisCloverAdgReport(@NotNull Artifact artifact)Returnstrueif given artifact contains Clover's HTML report in ADG style (introduced in Clover 4)booleanisCloverReport(@NotNull Artifact artifact)Returnstrueif given artifact contains Clover's HTML report.
-
-
-
Field Detail
-
REPORT_DATE_FORMAT
public static final String REPORT_DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CloverReportLinker
public CloverReportLinker(@NotNull @NotNull ResultsSummary summary, @NotNull @NotNull ArtifactLinkManager artifactLinkManager, @NotNull @NotNull String baseUrl)
-
-
Method Detail
-
getCloverReportUrl
@Deprecated @Nullable public @Nullable String getCloverReportUrl()
Deprecated.since 5.7Description copied from interface:ReportProviderReturn 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:
getCloverReportUrlin interfaceReportProvider- Returns:
- String URL to Clover report or
nullif not exists
-
getCloverReportUrl
@Nullable public @Nullable String getCloverReportUrl(@NotNull @NotNull Artifact artifact)
Description copied from interface:ReportProviderReturns URL of the given report artifact.- Specified by:
getCloverReportUrlin interfaceReportProvider- Returns:
- String artifact URL or
nullif not exists
-
getBuildResultsSummary
@NotNull public @NotNull ImmutableResultsSummary getBuildResultsSummary()
Description copied from interface:ReportProviderReturns build results- Specified by:
getBuildResultsSummaryin interfaceReportProvider- Returns:
- ImmutableResultsSummary
-
getTimestamp
@Deprecated @NotNull public @NotNull String getTimestamp()
Deprecated.since 5.7Description copied from interface:ReportProviderReturns 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:
getTimestampin interfaceReportProvider- Returns:
- String timestamp of Clover report or "" if not found
-
getTimestamp
@NotNull public @NotNull String getTimestamp(@NotNull @NotNull Artifact artifact)
Description copied from interface:ReportProviderReturns timestamp of the given report artifact.- Specified by:
getTimestampin interfaceReportProvider- Returns:
- String timestamp of Clover report or "" if not found
-
isCloverReport
public boolean isCloverReport(@NotNull @NotNull Artifact artifact)Description copied from interface:ReportProviderReturnstrueif given artifact contains Clover's HTML report.- Specified by:
isCloverReportin interfaceReportProvider- Parameters:
artifact- artifact to check- Returns:
- boolean
-
isCloverAdgReport
public boolean isCloverAdgReport(@NotNull @NotNull Artifact artifact)Description copied from interface:ReportProviderReturnstrueif given artifact contains Clover's HTML report in ADG style (introduced in Clover 4)- Specified by:
isCloverAdgReportin interfaceReportProvider- Parameters:
artifact- artifact to check- Returns:
- boolean
-
getCloverArtifacts
@NotNull public @NotNull Collection<Artifact> getCloverArtifacts()
Description copied from interface:ReportProviderReturns a list of artifacts (shared and local) containing Clover HTML report.- Specified by:
getCloverArtifactsin interfaceReportProvider- Returns:
- Collection<Artifact> list of reports or empty list
-
-