git GitLab CI 为什么这个跑步者不进行构建?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/41545349/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 12:32:34  来源:igfitidea点击:

GitLab CI Why this runner isn't doing the build?

gitgitlab-cigitlab-ci-runner

提问by julien2313

When I push a new commit, I would like to start build from the runner, but I get this message :

当我推送新提交时,我想从运行程序开始构建,但我收到以下消息:

This build is stuck, because you don't have any active runners online with any of these tags assigned to them: dev

Go to Runners page

这个构建被卡住了,因为你没有任何在线活动的跑步者,并为他们分配了任何这些标签:dev

转到跑步者页面

I installed GitLab 8.15.2.

我安装了 GitLab 8.15.2。

I created a basic project in C, a ".gitlab-ci.yml" file :

我用 C 创建了一个基本项目,一个“.gitlab-ci.yml”文件:

project1:
  tags:
    - dev
  script:
    - make
    - ./test

(If I remove the tag, I get almost the same message)

(如果我删除标签,我会得到几乎相同的消息)

I created a specific runner :

我创建了一个特定的跑步者:

root@debian:~# gitlab-ci-multi-runner register
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
  http://127.0.0.1
Please enter the gitlab-ci token for this runner:
  XXX
Please enter the gitlab-ci description for this runner:
  [debian]: p1
Please enter the gitlab-ci tags for this runner (comma separated):
  dev
Registering runner... succeeded                     runner=XXX
Please enter the executor: kubernetes, docker, parallels, ssh, docker+machine, docker-ssh, shell, virtualbox, docker-ssh+machine:
  shell
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded!
root@debian:~# gitlab-ci-multi-runner verify
Running in system -mode.

Verifying runner... is alive                        runner=XXX

On /admin/runners, I can see it.

在 /admin/runners 上,我可以看到它。

I don't understand what I'm missing...

我不明白我错过了什么......

回答by oLen

You still have to start the runner:

您仍然必须启动跑步者:

Execute gitlab-ci-multi-runner startto start the service, or gitlab-ci-multi-runner runto run it directly in the terminal.

执行gitlab-ci-multi-runner start以启动服务,或gitlab-ci-multi-runner run直接在终端中运行。