public class GitTagsHandler extends AbstractGitExecutor implements VcsTagsHandler
buildDirectoryManager, buildLoggingContext, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper
Constructor and Description |
---|
GitTagsHandler(CapabilityContext capabilityContext,
CredentialsAccessor credentialsAccessor,
CustomVariableContext customVariableContext,
BuildDirectoryManager buildDirectoryManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
TrustedKeyHelper trustedKeyHelper,
SshProxyService sshProxyService,
BuildLoggingContext buildLoggingContext) |
Modifier and Type | Method and Description |
---|---|
List<TagAndRevision> |
getAllTagsFromRepository(@NotNull VcsRepositoryData vcsRepositoryData)
Reads from git repository all tags (with revisions).
|
@Nullable ContextualVcsId<VcsTagsHandler> |
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 |
isBranchContainTag(VcsRepositoryData vcsRepositoryData,
String branchName,
TagAndRevision tagAndRevision) |
fetchCacheWithRetry, fetchWithRetry, getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSharedCredentialsIdField, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, isUsingSharedCredentials, rethrowOrRemoveDirectory, substituteString
@Inject public GitTagsHandler(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
public List<TagAndRevision> getAllTagsFromRepository(@NotNull @NotNull VcsRepositoryData vcsRepositoryData) throws RepositoryException
VcsTagsHandler
getAllTagsFromRepository
in interface VcsTagsHandler
RepositoryException
public boolean isBranchContainTag(VcsRepositoryData vcsRepositoryData, String branchName, TagAndRevision tagAndRevision) throws RepositoryException
isBranchContainTag
in interface VcsTagsHandler
RepositoryException
@Nullable public @Nullable ContextualVcsId<VcsTagsHandler> 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<VcsTagsHandler>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.