commit | b584943f3e4c362b733c21257ab282b7998507e8 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Mon Dec 19 00:51:39 2022 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Wed Jan 04 22:22:18 2023 +0000 |
tree | 02d862957024633cecdc2c293eec6d10d00c8b44 | |
parent | b8374f77a19e8e3271331d7e2ff75fcaf62796a2 [diff] |
Instantiate JSCH SSH Session Factory explicitily The JGit's SSH loading of the default session factory may lead to a non-deterministic instance if more than one factory is available. See below the current logic: private static SshSessionFactory loadSshSessionFactory() { ServiceLoader<SshSessionFactory> loader = ServiceLoader.load(SshSessionFactory.class); Iterator<SshSessionFactory> iter = loader.iterator(); if(iter.hasNext()) { return iter.next(); } return null; } If the first service is the Apache Mina SSHD Session Factory, then it would never be possible to configure the JSCH in clientImplementation when configured in gerrit.config. Manage expicitly the JSCH option for assuring that the desired session manager is always instantiated when requested. Release-Notes: Fix the ability to configure JSCH as client implementation in gerrit.config Change-Id: Ifafd717e16b5fc1853553bd1b6e3c60bb048b57e
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 8 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-centos8
To run a Ubuntu 20.04 based Gerrit image:
docker run -p 8080:8080 gerritcodereview/gerrit[:version]-ubuntu20
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.