public class GitConnectionTester extends AbstractGitExecutor implements VcsConnectionTester
buildDirectoryManager, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper
HOST_KEY
Constructor and Description |
---|
GitConnectionTester() |
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, setBuildDirectoryManager, setCapabilityContext, setCredentialsAccessor, setCustomVariableContext, setI18nResolver, setSshProxyService, setTrustedKeyHelper, substituteString
@NotNull public ErrorCollection testConnection(@NotNull VcsRepositoryData repositoryData, long timeout, @NotNull TimeUnit unit)
VcsConnectionTester
testConnection
in interface VcsConnectionTester
repositoryData
- 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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.