简体   繁体   English

Gitlab 跑步者不挑选工作

[英]Gitlab runner not picking jobs

I'm trying to set up a GitLab runner for a repository.我正在尝试为存储库设置 GitLab 运行器。 I've installed and registered a runner on a remote machine.我已经在远程机器上安装并注册了一个跑步者。 The runner in the Gitlab setting page is in the green light. Gitlab设置页面中的跑步者是绿灯。 Run untagged jobs has been set to true.运行未标记的作业已设置为 true。
The pipeline is running , but all the jobs inside this pipeline are all pending .管道正在运行,但该管道内的所有作业都处于挂起状态。
The status of the GitLab runner on the remote machine:远程机器上 GitLab runner 的状态:
远程机器
And here is my simple script of.gitlab-ci.yml:这是我的.gitlab-ci.yml的简单脚本:

stages:
  - build
  - test

image: "ruby:2.6.5"

build-ruby-bundler:
  stage: build
  script:
    - apt-get update -qq
    - ruby -v
    - which ruby
    - gem install bundler --no-document
    - bundle install --jobs $(nproc)  "${FLAGS[@]}"

rubocop:
  stage: test
  script:
    - bundle exec rubocop

I just realize, I registered the GitLab runner in user mode, which I need to register in system mode using sudo gitlab-runner register .我刚刚意识到,我在用户模式下注册了 GitLab 运行器,我需要在系统模式下使用sudo gitlab-runner register

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM