public class GitConnectionTester extends AbstractGitExecutor implements VcsConnectionTester
buildDirectoryManager, 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) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleHostKeyVerificationException(ErrorCollection errorCollection,
HostKeyVerificationException exception) |
ErrorCollection |
testConnection(VcsRepositoryData repositoryData,
long timeout,
TimeUnit unit)
Test connection to the repository within the given timeout.
|
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)
@NotNull public ErrorCollection testConnection(@NotNull VcsRepositoryData repositoryData, long timeout, @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
ErrorCollection errorCollection,
@NotNull
HostKeyVerificationException exception)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.