🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
这里出现两个问题,一个是因为我们使用的不是默认的http:80和ssh:22端口,所以git clone的时候我们需要修改一下连接方式 http的连接: ``` [root@jenkins-30 workspace]# git clone http://192.168.47.30:10080/devops/account ``` http克隆的时候总是会提示需要输入帐号密码, 如果是gitlab导入任务的时候是没有办法交互的. 所以需要把帐号密码填上去 ``` [root@jenkins-30 test]# git clone http://root:12345678@192.168.47.12/devops/account.git ``` ssh的连接,需要提前在gitlab上添加好ssh-key的公钥认证 ``` [root@jenkins-30 workspace]# git clone ssh://git@192.168.47.30:10022/devops/account.git account-ssh ```