繁体   English   中英

Gerrit复制到gitlab失败

[英]Gerrit Replication to gitlab failed

当我配置从Gerrit到gitlab的复制时,replication_log会继续报告:

[2016-10-10 09:36:07,517] [d0b90d12] Missing repository created; retry replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
[2016-10-10 09:37:07,517] [d0b90d12] Replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git started...
[2016-10-10 09:37:07,874] [d0b90d12] Created remote repository: git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
[2016-10-10 09:37:07,874] [d0b90d12] Missing repository created; retry replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
[2016-10-10 09:38:07,875] [d0b90d12] Replication to git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git started...
[2016-10-10 09:38:08,259] [d0b90d12] Created remote repository: git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git

我的plication.config文件:

  [remote "sprmvc-ui5"]
    projects = sprmvc-ui5
    url = git@mo-3394cf6e0.mo.sap.corp:CI_prep_group/sprmvc-ui5.git
    push = +refs/heads/*:refs/heads/*
    push = +refs/tags/*:refs/tags/*
    push = +refs/changes/*:refs/changes/*
    threads = 3

我的.ssh / config文件:

Host mo-3394cf6e0.mo.sap.corp
    HostName mo-3394cf6e0.mo.sap.corp
    User git
    IdentityFile ~/.ssh/id_rsa
    StrictHostKeyChecking no
    UserKnownHostsFile /dev/null

谁能给我建议?

我通过在gitlab中创建一个新用户并给予其对我的项目的完全访问权限来维护它,并维护了来自gerrit服务器的公共密钥。

您真的需要复制吗? 只需将其放入安装了GitLab的服务器上即可。

安装:

# install rpm source: the path took through INSTALL file
sudo rpm -i https://gerritforge.com/gerritforge-repo-1-2.noarch.rpm

#install gerrit
sudo yum install -y gerrit

初始化gerrit配置(可以多次运行,保存选项)。

在这里,我们将路径设置为git nude repos,并且可以指定gitlab具有的相同路径

java -jar /var/gerrit/bin/gerrit.war init

发射:

java -jar /var/gerrit/bin/gerrit.war daemon --console

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM