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 |
---|---|
@NotNull ErrorCollection |
testConnection(long timeout,
@NotNull TimeUnit unit)
Test connection to the repository within the given timeout.
|
default @NotNull ErrorCollection |
validateForConnectionTesting(@NotNull 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 @NotNull ErrorCollection testConnection(long timeout, @NotNull @NotNull TimeUnit unit)
timeout
- the maximum time to waitunit
- the time unit of the timeout argument@NotNull default @NotNull ErrorCollection validateForConnectionTesting(@NotNull @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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.