簡體   English   中英

GitLab Runner無法克隆存儲庫

[英]GitLab Runner Unable to clone repository

我已經向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]

如何克服這個問題?

您將獲得etc / gitlab / gitlab.rb文件中提到的URL。 如果你將用你的“ http://azurestackgitlab1.southeastasia.cloudapp.azure.com ”更改“hxakzvpf0otezeojz3wqhme5wg.cx.internal.cloudapp.net”它應該有效! 有關更多信息,請參閱: http//azurestackgitlab1.southeastasia.cloudapp.azure.com/help/administration/environment_variables.md

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM