gpt4 book ai didi

GitLab CI 为什么这个运行者不做构建?

转载 作者:太空狗 更新时间:2023-10-29 13:06:59 24 4
gpt4 key购买 nike

当我推送一个新提交时,我想从运行器开始构建,但我收到这条消息:

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

我安装了 GitLab 8.15.2。

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

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

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

我创建了一个特定的运行者:

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

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

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

最佳答案

您仍然需要启动运行者:

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

关于GitLab CI 为什么这个运行者不做构建?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41545349/

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