Package com.atlassian.bamboo.vcs.runtime
Interface VcsBuildWarningsUpdater
-
- All Superinterfaces:
IdentifyingExecutor<VcsBuildWarningsUpdater>
- All Known Implementing Classes:
BitbucketServerBuildWarningsUpdater
public interface VcsBuildWarningsUpdater extends IdentifyingExecutor<VcsBuildWarningsUpdater>
Executor responsible for updating a repository host with build warnings. Used on server-side. Implementation should be stateless.- Since:
- 6.7
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteBuildWarnings(@NotNull VcsRepositoryData repository, @NotNull String changeSetId, @NotNull ImmutableChainResultsSummary resultsSummary)
Removes all warnings previously sent by Bamboo for the given repository used in a build.boolean
sendBuildWarnings(@NotNull VcsRepositoryData repository, @NotNull String changesetId, @NotNull ImmutableChainResultsSummary resultsSummary, @NotNull BuildWarningSummary warningSummary, @NotNull Iterable<WarningAnnotation> warnings)
Sends build warnings for the given repository used in a build.boolean
supportsBuildWarnings(@NotNull VcsRepositoryData repository)
Returns true if build warnings are supported by the givenrepository
.-
Methods inherited from interface com.atlassian.bamboo.vcs.runtime.IdentifyingExecutor
getVcsIdForExecutor
-
-
-
-
Method Detail
-
supportsBuildWarnings
boolean supportsBuildWarnings(@NotNull @NotNull VcsRepositoryData repository)
Returns true if build warnings are supported by the givenrepository
.
-
sendBuildWarnings
boolean sendBuildWarnings(@NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull String changesetId, @NotNull @NotNull ImmutableChainResultsSummary resultsSummary, @NotNull @NotNull BuildWarningSummary warningSummary, @NotNull @NotNull Iterable<WarningAnnotation> warnings) throws RepositoryException
Sends build warnings for the given repository used in a build.This method can be called multiple times to send warnings incrementally, to allow external data batching.
- Parameters:
repository
- repository for which to send code warningschangesetId
- commit identifierresultsSummary
- summary of the build result which generated the warningswarningSummary
- summary of the warningswarnings
- batch of warnings to send- Returns:
true
if annotations have been successfully sent,false
otherwise. Whenfalse
is returned, no further calls to this method should be performed for the same repository and result.- Throws:
RepositoryException
- if for any reason the build warnings could not have been sent.
-
deleteBuildWarnings
void deleteBuildWarnings(@NotNull @NotNull VcsRepositoryData repository, @NotNull @NotNull String changeSetId, @NotNull @NotNull ImmutableChainResultsSummary resultsSummary) throws RepositoryException
Removes all warnings previously sent by Bamboo for the given repository used in a build.- Parameters:
repository
- repository for which to delete code warningschangeSetId
- commit identifierresultsSummary
- summary of the build result which generated the warnings- Throws:
RepositoryException
- if for any reason the build warnings could not have been deleted.
-
-