x4k*_*k3p 7 deployment continuous-integration build project gitlab
我和GitLab CI有些麻烦.我按照官方指南:https: //github.com/gitlabhq/gitlab-ci/blob/master/doc/installation.md
一切都很好,没有任何错误.我也跟着Runner-Setup.没事.
但...
当我向项目中添加一个跑步者然后尝试构建没有任何反应时.可能是我还没有完全理解某些东西,或者我的一些配置是错误的.我是GitLab CI的新手,但我喜欢它,我想学习新东西.
如果有人能以某种方式帮助我,我将非常高兴.
谢谢!


大新闻: 刚想通了:
~/gitlab-runners/gitlab-ci-runner$ bin/runner
Run Code Online (Sandbox Code Playgroud)
手动启动转轮过程可以解决问题,但如果我查看/etc/init.d中的gitlab-ci-runner - >它正在运行!?!
~/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
Run Code Online (Sandbox Code Playgroud)
这有什么不对?我失去了力量或没有看到问题?!
问题解决了!
您需要在/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"
Run Code Online (Sandbox Code Playgroud)
现在它有效!
| 归档时间: |
|
| 查看次数: |
7189 次 |
| 最近记录: |