Deployment GitLab CI-项目构建处于无延迟挂起状态

Deployment GitLab CI-项目构建处于无延迟挂起状态,deployment,build,continuous-integration,project,gitlab,Deployment,Build,Continuous Integration,Project,Gitlab,我在GitLab CI上遇到了一些麻烦。 我遵循官方指南: 一切正常,没有错误。我也跟着跑步者的设置。 好的 但是 当我向一个项目添加一个运行程序,然后尝试构建时,什么也没有发生。 可能是我没有完全理解某些事情,或者我的一些配置有误。 我是GitLab CI的新手,但我喜欢它,我想学习新东西 如果有人能以某种方式帮助我,我将非常高兴 谢谢 大更新: 我刚刚发现: ~/gitlab-runners/gitlab-ci-runner$ bin/runner 手动启动运行程序进程可以解决这个

我在GitLab CI上遇到了一些麻烦。 我遵循官方指南:

一切正常,没有错误。我也跟着跑步者的设置。 好的

但是

当我向一个项目添加一个运行程序,然后尝试构建时,什么也没有发生。 可能是我没有完全理解某些事情,或者我的一些配置有误。 我是GitLab CI的新手,但我喜欢它,我想学习新东西

如果有人能以某种方式帮助我,我将非常高兴

谢谢

大更新: 我刚刚发现:

~/gitlab-runners/gitlab-ci-runner$ bin/runner
手动启动运行程序进程可以解决这个问题,但是如果我在/etc/init.d->中查看gitlab ci运行程序,它正在运行

~/gitlab-runners/gitlab-ci-runner$ sudo /etc/init.d/gitlab-ci-runner start
Number of registered runners in PID file=1
Number of running runners=0
Error! GitLab CI runner(s) (gitlab-ci-runner) appear to be running already! Try stopping them first. Exiting.
~/gitlab-runners/gitlab-ci-runner$ sudo /etc/init.d/gitlab-ci-runner stop
Number of registered runners in PID file=1
Number of running runners=0
WARNING: Numbers of registered runners don't match number of running runners. Will try to stop them all
Registered runners=1
Running runners=0
Trying to stop registered runners...kill: No such process
OK
Trying to kill ghost runners...OK
这里怎么了?我已经无能为力了,还是看不到问题

问题解决了

您需要在/etc/init.d/gitlab-ci-runner脚本中编辑一些值

APP_ROOT="**PATH_TO**/gitlab-runners/gitlab-ci-runner"
APP_USER="**USER_WITH_DIRRIGHTS!**"
PID_PATH="$APP_ROOT/tmp/pids"
PROCESS_NAME="ruby ./bin/runner"
RUNNERS_PID="$PID_PATH/runners.pid"
RUNNERS_NUM=1 # number of runners to spawn 
START_RUNNER="nohup bundle exec ./bin/runner"

现在它工作了

在我的例子中,runner中的标记与.gitlab-ci.yml中的标记不同。一旦我更改了它们,使runner标记包含所有配置文件测试,任务就开始运行。

对于我来说,变量都很好,但服务只是启动runner,runner检查一次(没有找到项目),然后退出(日志将不会更新)。。。此外,我还必须明确地将该运行者分配给所有项目,让他运行构建,否则他不会介意任何构建:/或者只是从lib/support/init.d复制脚本