Class GitConnectionTester

java.lang.Object
com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
com.atlassian.bamboo.plugins.git.v2.GitConnectionTester
All Implemented Interfaces:
VcsConnectionTester

public class GitConnectionTester extends AbstractGitExecutor implements VcsConnectionTester
  • Constructor Details

  • Method Details

    • testConnection

      @NotNull public @NotNull ErrorCollection testConnection(@NotNull @NotNull VcsRepositoryData repositoryData, long timeout, @NotNull @NotNull TimeUnit unit)
      Description copied from interface: VcsConnectionTester
      Test connection to the repository within the given timeout. The method should stop executing after the given time elapses.
      Specified by:
      testConnection in interface VcsConnectionTester
      Parameters:
      repositoryData - configuration to be tested
      timeout - the maximum time to wait
      unit - 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.
    • handleHostKeyVerificationException

      protected void handleHostKeyVerificationException(@NotNull @NotNull ErrorCollection errorCollection, @NotNull @NotNull HostKeyVerificationException exception)