public abstract class AbstractGitExecutor extends Object
Modifier and Type | Field and Description |
---|---|
protected BuildDirectoryManager |
buildDirectoryManager |
protected CustomVariableContext |
customVariableContext |
static String |
DEFAULT_BRANCH |
protected com.atlassian.sal.api.message.I18nResolver |
i18nResolver |
protected SshProxyService |
sshProxyService |
protected TrustedKeyHelper |
trustedKeyHelper |
Constructor and Description |
---|
AbstractGitExecutor(CapabilityContext capabilityContext,
CredentialsAccessor credentialsAccessor,
CustomVariableContext customVariableContext,
BuildDirectoryManager buildDirectoryManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
TrustedKeyHelper trustedKeyHelper,
SshProxyService sshProxyService) |
public static final String DEFAULT_BRANCH
protected final SshProxyService sshProxyService
protected final CustomVariableContext customVariableContext
protected final BuildDirectoryManager buildDirectoryManager
protected final com.atlassian.sal.api.message.I18nResolver i18nResolver
protected final TrustedKeyHelper trustedKeyHelper
@Inject public AbstractGitExecutor(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService)
@Nullable public File getWorkingDirectory()
@Nullable public String getGitCapability()
@Nullable public String getSshCapability()
public static boolean isUsingSharedCredentials(@NotNull Map<String,String> serverCfg)
@NotNull public static String getSharedCredentialsIdField(@NotNull Map<String,String> config)
protected GitRepositoryAccessData getAccessData(@NotNull VcsRepositoryData vcsRepositoryData)
protected GitRepositoryAccessData.Builder getSubstitutedAccessDataBuilder(@NotNull VcsRepositoryData vcsRepositoryData)
protected GitRepositoryAccessData getSubstitutedAccessData(@NotNull VcsRepositoryData vcsRepositoryData)
@Deprecated protected File getCacheDirectory(@NotNull GitRepositoryAccessData substitutedAccessData)
getCachePath(GitRepositoryAccessData)
insteadprotected Path getCachePath(@NotNull GitRepositoryAccessData substitutedAccessData)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.