[英]Rename gitlab repository for pipeline Ci/CD runner
I have a small problem when I run pipeline runner for self hosted gitlab repository. 我为自托管的gitlab存储库运行管道运行程序时遇到一个小问题。 Runner want clone the repo because of the address, in Advanced settings my path is something like 跑步者由于地址需要克隆仓库,在“高级设置”中,我的路径类似于
http://125.161.171.87:8888/Group/Project
, http://125.161.171.87:8888/Group/Project
,
but the address for the ssh is 但是ssh的地址是
git@project.com:Group/Project.git
, git@project.com:Group/Project.git
,
so is there a chance that I change the ssh address to 所以我有可能将ssh地址更改为
git@125.161.171.87:Group/Project
or this is something that is not possible. 或这是不可能的。
Solution is to change external_url
in /etc/gitlab/gitlab.rb
. 解决办法是改变external_url
在/etc/gitlab/gitlab.rb
。 That will change address from 那将从
git@project.com:Group/Project.git
to git@125.161.171.87:Group/Project
git@project.com:Group/Project.git
到git@125.161.171.87:Group/Project
More information here on the gitlab forum . 在gitlab 论坛上有更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.