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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ErrorCollection
testConnection
(@NotNull VcsRepositoryData repositoryData, long timeout, @NotNull TimeUnit unit) Test connection to the repository within the given timeout.
-
Field Details
-
HOST_KEY
Marker field for error messages related to host key verification.- See Also:
-
-
Method Details
-
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
-