SSH/HTTP/Anonymous HTTP 克隆 URL 在 Gerrit 2.12.2 中不可见

SSH/HTTP/Anonymous HTTP Clone URL not visible in Gerrit 2.12.2

我刚刚安装了 Gerrit 代码审查系统 2.12.2 版。我正在通过 LDAP 管理对 Web 界面的身份验证。以管理员身份登录后,我创建了一个名为 "testProject" 的项目。我无法在 GUI 的项目页面上看到 SSH/Anonymous HTTP/HTTP 克隆 URL(见下文)。文档说如果 download.scheme 在配置中未指定,SSH/Anonymous HTTP/HTTP 下载方法将是默认方案。此外,我无法通过我创建的 URL 克隆项目,假设 gerrit 将使用的格式 (ssh://user@localhost:29418/testProject),尽管我的 ssh 密钥已添加(而且我是能够发出命令,例如 gerrit ls-projects)。请让我知道我做错了什么。我的配置附在图片下方

    [gerrit]
        basePath = git
        canonicalWebUrl = http://<url>:9001/
    [database]
        type = H2
        database = db/ReviewDB
    [index]
        type = LUCENE
    [auth]
        type = LDAP
    [ldap]
        <some LDAP stuff>
    [sendemail]
        smtpServer = localhost
    [container]
        user = gerrit
        javaHome = <JAVA_HOME>
    [sshd]
        listenAddress = *:29418
    [httpd]
        listenUrl = http://*:9001/
    [cache]
        directory = cache

此问题与未安装 Gerrit 的下载命令插件有关。在初始化期间,Gerrit 会提示用户安装插件。如果用户拒绝(或者以--batch模式执行安装),则不会安装插件。

这里是针对 Gerrit 开的参考票

https://code.google.com/p/gerrit/issues/detail?can=2&q=4029&colspec=ID%20Type%20Stars%20Milestone%20Status%20Priority%20Owner%20Summary&id=4029

为避免重新安装 download/install 插件,可以: 1.获取预建插件master分支的插件在

https://console.cloud.google.com/storage/browser/gerritcodereview-plugins/plugins/master/

  1. 从第 1 步获得的插件与除 master 之外的任何其他分支不兼容。要手动构建插件,必须克隆所需的源分支并使用 Buck 安装

How to install delete-project plugin in gerrit? https://gerrit-review.googlesource.com/Documentation/dev-buck.html

  1. 获得插件的 *.jar 文件后(通过步骤 1 或步骤 2),可以将它们复制到 $gerrit_site/site/plugins/ 手动或通过远程插件安装

https://gerrit-review.googlesource.com/Documentation/cmd-plugin-install.html