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() |
public static final String DEFAULT_BRANCH
protected SshProxyService sshProxyService
protected CustomVariableContext customVariableContext
protected BuildDirectoryManager buildDirectoryManager
protected com.atlassian.sal.api.message.I18nResolver i18nResolver
protected TrustedKeyHelper trustedKeyHelper
@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)
protected void rethrowOrRemoveDirectory(Exception originalException, BuildLogger buildLogger, File directory, String key) throws Exception
Exception
public void setCapabilityContext(CapabilityContext capabilityContext)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
public void setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
public void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
public void setSshProxyService(SshProxyService sshProxyService)
public void setTrustedKeyHelper(TrustedKeyHelper trustedKeyHelper)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.