Files
gerrit/java
David Ostrovsky ceb5ec1746 Git transport: Add option to switch to using MINA ssh client
Allow to optionally switch to using Apache MINA sshd client. This option
was recently added to JGit implementation. Per default JCraft JSch ssh
client is still used, but in future releases the default will be swapped
to Apache MINA ssh client.

Additional jgit module ssh-apache and transitive dependency artifact
sshd-sftp are added as new dependencies.

Per default, acceptance tests are still using JSch ssh client. To switch
using Apache MINA ssh client in acceptance tests, environment variable
can be passed: SSH_CLIENT_IMPLEMENTATION=JSCH|APACHE. To set up preferred
client type for the acceptance tests from the IDE, Java system property
can be set: -Dgerrit.sshClientImplementation=JSCH|APACHE.

Test Plan:

1. To run the tests using JSch ssh client:

  $ bazel test --test_env=SSH_CLIENT_IMPLEMENTATION=JSCH //...

2. To run the tests using Apache MINA ssh client:

  $ bazel test --test_env=SSH_CLIENT_IMPLEMENTATION=APACHE //...

Feature: Issue 12599
Change-Id: Ib4d288bbf390157becaebea870d48963a78d7811
2021-03-31 09:36:31 +00:00
..