Gitlab —无法注册共享运行器

时间:2019-11-15 12:21:42

标签: gitlab gitlab-ci gitlab-ci-runner

我有一个私人的GitLab存储库,并且对其具有管理员访问权限。要配置CI / CD。按照https://docs.gitlab.com/ee/ci/runners/,我尝试注册一个共享跑步者。为此,我在本地安装了gitlab-runner,并尝试按照文档中所述的步骤进行注册。

gitlab-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
//As far as I use Gitlab CI, I enter default value: https://gitlab.com/
Please enter the gitlab-ci token for this runner:
//To grab the value for this one, I go to Settings -> CI/CD -> Runners and grab a token from right panel (e.g. one of the Enabled SHARED Runners token values)
Please enter the gitlab-ci description for this runner:
Please enter the gitlab-ci tags for this runner (comma separated):
//populate both with arbitrary data

在最后一步之后,我收到:

  

错误:禁止注册跑步者...(检查注册令牌)   Runner = {跑步者访问令牌} PANIC:无法注册该跑步者。也许你是   遇到网络问题

我尝试了所有共享跑步者的访问令牌,并尝试使用https://ci.gitlab.com/而不是默认令牌,但总是会遇到相同的错误。

任何见解都值得赞赏

1 个答案:

答案 0 :(得分:1)

您不需要注册共享跑步者。如果您自己创建跑步者,请注册。在您的项目中,转到

设置> CI / CD>跑步者

您想要的粉红色背景上的红色代码。