Package com.atlassian.bamboo.vcs.runtime
Interface VcsConnectionTester
-
- All Known Implementing Classes:
BitbucketCloudConnectionTester
,GitConnectionTester
,GitHubConnectionTester
,LegacyConnectionTester
,SvnConnectionTester
public interface VcsConnectionTester
Class responsible for testing connection to a repository. Implementation should be stateless. Used agent-side.- Since:
- 5.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull ErrorCollection
testConnection(@NotNull VcsRepositoryData repositoryData, long timeout, @NotNull TimeUnit unit)
Test connection to the repository within the given timeout.
-
-
-
Field Detail
-
HOST_KEY
static final String HOST_KEY
Marker field for error messages related to host key verification.- See Also:
- Constant Field Values
-
-
Method Detail
-
testConnection
@NotNull @NotNull ErrorCollection testConnection(@NotNull @NotNull VcsRepositoryData repositoryData, long timeout, @NotNull @NotNull TimeUnit unit)
Test connection to the repository within the given timeout. The method should stop executing after the given time elapses.- Parameters:
repositoryData
- configuration to be testedtimeout
- the maximum time to waitunit
- the time unit of the timeout argument- Returns:
- Errors discovered during testing connection. Empty error collection should be returned if connection was successful. The errors should be translated to error messages, rather than field errors.
- Since:
- 5.10
-
-