public class GitConnectionTester extends AbstractGitExecutor implements VcsConnectionTester
buildDirectoryManager, buildLoggingContext, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelperHOST_KEY| Constructor and Description |
|---|
GitConnectionTester(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 |
|---|---|
protected void |
handleHostKeyVerificationException(@NotNull ErrorCollection errorCollection,
@NotNull HostKeyVerificationException exception) |
@NotNull ErrorCollection |
testConnection(@NotNull VcsRepositoryData repositoryData,
long timeout,
@NotNull TimeUnit unit)
Test connection to the repository within the given timeout.
|
fetchCacheWithRetry, fetchWithRetry, getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSharedCredentialsIdField, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, isUsingSharedCredentials, rethrowOrRemoveDirectory, substituteString@Inject public GitConnectionTester(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
@NotNull public @NotNull ErrorCollection testConnection(@NotNull @NotNull VcsRepositoryData repositoryData, long timeout, @NotNull @NotNull TimeUnit unit)
VcsConnectionTestertestConnection in interface VcsConnectionTesterrepositoryData - configuration to be testedtimeout - the maximum time to waitunit - the time unit of the timeout argumentprotected void handleHostKeyVerificationException(@NotNull
@NotNull ErrorCollection errorCollection,
@NotNull
@NotNull HostKeyVerificationException exception)
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.