public class BitbucketCloudCommitCommenter extends BitbucketCloudRestApiClient implements VcsCommitCommenter
Modifier and Type | Class and Description |
---|---|
static class |
BitbucketCloudCommitCommenter.DeploymentDTO |
static class |
BitbucketCloudCommitCommenter.MissingPermissionEntity |
static class |
BitbucketCloudCommitCommenter.PlanDTO |
bitbucketClientSupplier
Constructor and Description |
---|
BitbucketCloudCommitCommenter(AdministrationConfigurationAccessor administrationConfigurationAccessor,
CredentialsAccessor credentialsAccessor,
DeploymentProjectService deploymentProjectService,
ProjectManager projectManager,
RepositoryDefinitionManager repositoryDefinitionManager,
RepositoryStoredSpecsLogService repositoryStoreSpecsLogService,
TemplateRenderer templateRenderer) |
Modifier and Type | Method and Description |
---|---|
@Nullable ContextualVcsId<VcsCommitCommenter> |
getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
Returned id has to fulfill the following:
Given two VcsRepositoryData objects A and B, and executor e returning equal ContextualVcsId (in terms of equals()),
for any operation foo() provided by the executor,
the calls e::foo(A) and e::foo(B) should be equivalent.
|
boolean |
publishComment(@NotNull VcsRepositoryData repositoryData,
@NotNull String commitId,
@NotNull String payload)
Publish comment to repository commit.
|
boolean |
publishRssStatus(@NotNull VcsRepositoryData repositoryData,
@NotNull String commitId,
@NotNull com.atlassian.event.Event event)
Publish Bamboo Specs execution status to repository commit.
|
addFilters, getAuthFilter, getLoggingFilter, prepareResourceCall
@Inject public BitbucketCloudCommitCommenter(AdministrationConfigurationAccessor administrationConfigurationAccessor, CredentialsAccessor credentialsAccessor, DeploymentProjectService deploymentProjectService, ProjectManager projectManager, RepositoryDefinitionManager repositoryDefinitionManager, RepositoryStoredSpecsLogService repositoryStoreSpecsLogService, TemplateRenderer templateRenderer)
public boolean publishRssStatus(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String commitId, @NotNull @NotNull com.atlassian.event.Event event) throws RepositoryException
VcsCommitCommenter
publishRssStatus
in interface VcsCommitCommenter
commitId
- identifier of commit which should receive comment. For git-based repos it's SHA.event
- is RssEvent
from bamboo-core.RepositoryException
- when commit not found or credentials are wrongpublic boolean publishComment(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String commitId, @NotNull @NotNull String payload) throws RepositoryException
VcsCommitCommenter
publishComment
in interface VcsCommitCommenter
commitId
- identifier of commit which should receive comment. For git-based repos it's SHA.payload
- content of commentRepositoryException
- when commit not found or credentials are wrong@Nullable public @Nullable ContextualVcsId<VcsCommitCommenter> getVcsIdForExecutor(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutor
VcsBranchDetector
. If they also point
to the same branch, they are considered equal in context of VcsChangeDetector
getVcsIdForExecutor
in interface IdentifyingExecutor<VcsCommitCommenter>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences