Class BuildWarningSummaryCollationServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.build.warning.BuildWarningSummaryCollationServiceImpl
-
- All Implemented Interfaces:
BuildWarningSummaryCollationService
public class BuildWarningSummaryCollationServiceImpl extends Object implements BuildWarningSummaryCollationService
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.build.warning.BuildWarningSummaryCollationService
WARNINGS_ARTIFACT
-
-
Constructor Summary
Constructors Constructor Description BuildWarningSummaryCollationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull File
aggregationFileForCommonContext(@NotNull CommonContext commonContext)
Returns the file containing collected warnings for a givenCommonContext
.void
appendWarningAnnotations(@NotNull TaskContext taskContext, @NotNull Iterable<WarningAnnotation> annotations, @NotNull Long associatedRepositoryId)
Adds warnings to a warnings file and updates the warnings summary for a build result.void
publishCollectedWarnings(@NotNull BuildContext buildContext)
Ends collection of warnings and publishes them as a build artifact.
-
-
-
Method Detail
-
appendWarningAnnotations
public void appendWarningAnnotations(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull Iterable<WarningAnnotation> annotations, @NotNull @NotNull Long associatedRepositoryId) throws IOException
Description copied from interface:BuildWarningSummaryCollationService
Adds warnings to a warnings file and updates the warnings summary for a build result.- Specified by:
appendWarningAnnotations
in interfaceBuildWarningSummaryCollationService
- Throws:
IOException
-
publishCollectedWarnings
public void publishCollectedWarnings(@NotNull @NotNull BuildContext buildContext) throws IOException
Description copied from interface:BuildWarningSummaryCollationService
Ends collection of warnings and publishes them as a build artifact.- Specified by:
publishCollectedWarnings
in interfaceBuildWarningSummaryCollationService
- Throws:
IOException
-
aggregationFileForCommonContext
@NotNull public @NotNull File aggregationFileForCommonContext(@NotNull @NotNull CommonContext commonContext)
Description copied from interface:BuildWarningSummaryCollationService
Returns the file containing collected warnings for a givenCommonContext
.- Specified by:
aggregationFileForCommonContext
in interfaceBuildWarningSummaryCollationService
-
-