gpt4 book ai didi

continuous-integration - GitLab Runner 无法克隆存储库

转载 作者:行者123 更新时间:2023-12-01 06:00:56 25 4
gpt4 key购买 nike

我已将 gitlab runner 注册到 gitlab 实例。我注册的网址如下: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

关于continuous-integration - GitLab Runner 无法克隆存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45488372/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com