GitLab Runner 无法克隆存储库
GitLab Runner Unable to clone repository
我已经在gitlab实例中注册了gitlab runner。我注册的URL如下:http://azurestackgitlab1.southeastasia.cloudapp.azure.com/ci
但是 运行 该项目的构建;构建失败并给出以下消息:
Running with gitlab-ci-multi-runner 1.11.1 (a67a225)
on java test (96d320b3)
WARNING: image is not supported by selected executor and shell
Using Shell executor...
Running on AzureStackPOCVM...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/96d320b3/0/root/demoproject'...
fatal: unable to access 'http://gitlab-ci-token:xxxxxx@gitlab-ce.hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net/root/demoproject.git/': Could not resolve host: gitlab-ce.hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net
ERROR: Job failed: exit status 1
config.toml 的片段:
[[runners]]
name = "java test"
url = "http://azurestackgitlab1.southeastasia.cloudapp.azure.com/ci"
token = "96d320b33d3c69d706dad7f90df84e"
executor = "shell"
[runners.cache]
如何克服这个问题?
您将得到 etc/gitlab/gitlab.rb 文件中提到的 URL。如果你会改变"hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net"
用你的“http://azurestackgitlab1.southeastasia.cloudapp.azure.com”
它应该工作!
更多信息您可以参考:http://azurestackgitlab1.southeastasia.cloudapp.azure.com/help/administration/environment_variables.md
我已经在gitlab实例中注册了gitlab runner。我注册的URL如下:http://azurestackgitlab1.southeastasia.cloudapp.azure.com/ci
但是 运行 该项目的构建;构建失败并给出以下消息:
Running with gitlab-ci-multi-runner 1.11.1 (a67a225)
on java test (96d320b3)
WARNING: image is not supported by selected executor and shell
Using Shell executor...
Running on AzureStackPOCVM...
Cloning repository...
Cloning into '/home/gitlab-runner/builds/96d320b3/0/root/demoproject'...
fatal: unable to access 'http://gitlab-ci-token:xxxxxx@gitlab-ce.hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net/root/demoproject.git/': Could not resolve host: gitlab-ce.hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net
ERROR: Job failed: exit status 1
config.toml 的片段:
[[runners]]
name = "java test"
url = "http://azurestackgitlab1.southeastasia.cloudapp.azure.com/ci"
token = "96d320b33d3c69d706dad7f90df84e"
executor = "shell"
[runners.cache]
如何克服这个问题?
您将得到 etc/gitlab/gitlab.rb 文件中提到的 URL。如果你会改变"hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net" 用你的“http://azurestackgitlab1.southeastasia.cloudapp.azure.com” 它应该工作! 更多信息您可以参考:http://azurestackgitlab1.southeastasia.cloudapp.azure.com/help/administration/environment_variables.md