我已经向gitlab实例注册了gitlab runner。我的注册网址如下: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]
如何克服这个问题?
答案 0 :(得分:0)
您将获得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