运行程序无法克隆gitlab存储库

运行程序无法克隆gitlab存储库,gitlab,runner,Gitlab,Runner,我的计算机上安装的运行程序无法克隆git存储库 我有一个gitlab实例,它以停靠方式运行,并公开对地址处web界面的访问。在端口80运行另一个完全不同的网页 Gitlab建议使用此url克隆代码 但我改成了,我能做到 共享跑步者是禁用的,我只注册了这个跑步者 我在另一台计算机上注册并安装了runner,试图创建一个简单的CI管道。我的toml文件看起来像这样 concurrent = 1 check_interval = 0 [session_server] session_timeo

我的计算机上安装的运行程序无法克隆git存储库

我有一个gitlab实例,它以停靠方式运行,并公开对地址处web界面的访问。在端口80运行另一个完全不同的网页

Gitlab建议使用此url克隆代码 但我改成了,我能做到

共享跑步者是禁用的,我只注册了这个跑步者

我在另一台计算机上注册并安装了runner,试图创建一个简单的CI管道。我的toml文件看起来像这样

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "RunnerParaDotNet"
  url = "http://http://172.19.193.16:666/"
  token = "JTJxZ_xcxnzbs89Vcq_x"
  executor = "shell"
  shell = "powershell"
  [runners.custom_build_dir]
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]
  [runners.custom]
    run_exec = ""
当我添加一个新管道并且运行程序运行时,我得到以下消息

Running with gitlab-runner 12.1.0 (de7731dd)
  on RunnerParaDotNet JTJxZ_xc
Using Shell executor...
Running on CTISMXL8310VN7...
Fetching changes...
Reinitialized existing Git repository in C:/GitLab-Runner/builds/JTJxZ_xc/0/yamil.ortega/aprendizajegit/.git/
fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@c87aa950bc8a/yamil.ortega/aprendizajegit.git/': Could not resolve host: c87aa950bc8a
ERROR: Job failed: exit status 1
我加了一行

172.19.193.16        c87aa950bc8a
在C:\Windows\System32\drivers\etc中创建我的主机文件,现在我遇到了这个错误

Running with gitlab-runner 12.1.0 (de7731dd)
  on RunnerParaDotNet JTJxZ_xc
Using Shell executor...
Running on CTISMXL8310VN7...
Fetching changes...
Reinitialized existing Git repository in C:/GitLab-Runner/builds/JTJxZ_xc/0/yamil.ortega/aprendizajegit/.git/
fatal: repository 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@c87aa950bc8a/yamil.ortega/aprendizajegit.git/' not found
ERROR: Job failed: exit status 1
因此,我知道我可以联系别名为c87aa950bc8a的Gitlab服务器(修改主机文件),但由于它位于端口666上,因此运行程序无法克隆。
我能试试别的吗?

终于找到了解决办法。 阅读本页中有关高级跑步者配置的信息

发现我必须添加

clone_url 
config.toml文件的指令

因此,mi config.toml文件如下所示

concurrent = 1
check_interval = 0

[session_server]
session_timeout = 1800

[[runners]]
  name = "RunnerParaDotNet"
  url = "http://172.19.193.16:666/"
  token = "JTJxZ_xcxnzbs89Vcq_x"
  executor = "shell"
  shell = "powershell"
  clone_url = "http://172.19.193.16:666/"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.custom]
run_exec = ""