gitlab/gerrit/jenkins 集成
参考:
http://blog.csdn.net/stwstw0123/article/details/47615535
当replication gerrit的提交到gitlab时出现下面错误:
[2016-08-01 16:20:44,439] [41c60ca4] Cannot replicate to ssh://[email protected]:10022/test-group/proj1.git
org.eclipse.jgit.errors.TransportException: ssh://[email protected]:10022/test-group/proj1.git: HostKey has been changed: [172.16.2.94]:10022
原因是执行下面的命令时没有带-p port_number
$ sudo -u gerrit2 -H sh -c "ssh-keyscan -t rsa 172.16.2.94 >> /home/gerrit2/.ssh/known_hosts"
$ sudo -u gerrit2 -H sh -c "ssh-keygen -H -f /home/gerrit2/.ssh/known_hosts"
如果你的gitlab的不是默认的8080端口的话,在执行以上命令时请带上-p 10022端口号。
ssh-keyscan -p 10022 -t rsa 172.16.2.94 >> ~/.ssh/known_hosts
reject HostKey
vi ~/.ssh/config Host mirror User gerrit IdentityFile /home/gerrit2/.ssh/id_rsa StrictHostKeyChecking no UserKnownHostsFile /dev/null
相关推荐
LiHansiyuan 2020-06-14
synshitou 2020-10-21
Topbeyond 2020-08-21
花落兰亭 2020-06-09
cxin 2020-11-06
happyfreeangel 2020-07-27
白开水 2020-07-19
无风的雨 2020-07-08
贤时间 2020-07-06
wishli 2020-06-28
小信 2020-06-21
leehbhs 2020-06-20
happyfreeangel 2020-06-18
83284950 2020-06-17
冯冯领队 2020-06-16
就是那个胖子 2020-06-14
83284950 2020-06-14
fcds00 2020-06-11