public interface TestConnectionAwareRepository extends Repository
Modifier and Type | Field and Description |
---|---|
static String |
HOST_KEY
Marker field for error messages related to host key verification.
|
SELECTED_REPOSITORY, UNKNOWN_HOST
Modifier and Type | Method and Description |
---|---|
ErrorCollection |
testConnection(long timeout,
TimeUnit unit)
Test connection to the repository within the given timeout.
|
default ErrorCollection |
validateForConnectionTesting(BuildConfiguration configuration)
A method similar to
BuildConfigurationAwarePlugin.validate(BuildConfiguration) used to validate repository configuration
before connection testing. |
checkConnection, getHost, getKey, getLocationIdentifier, getMinimalEditHtml, getName, getShortKey
populateFromConfig, toConfiguration
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
getDescription
static final String HOST_KEY
@NotNull ErrorCollection testConnection(long timeout, @NotNull TimeUnit unit)
timeout
- the maximum time to waitunit
- the time unit of the timeout argument@NotNull default ErrorCollection validateForConnectionTesting(@NotNull BuildConfiguration configuration)
BuildConfigurationAwarePlugin.validate(BuildConfiguration)
used to validate repository configuration
before connection testing.
This method may be more relaxed than normal validation. Additionally, different error messages may be displayed
(e.g. related to impossibility of transferring files).configuration
- repository configuration to validateCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.