Reputation: 13
I got the right ci.yml, gitlab runner configured right.But still told me "This job is stuck because of one of the following problems. There are no active runners online, no runners for the protected branch, or no runners that match all of the job's tags: build Go to project CI settings"
my gitlab-ci.yml(very simple for test):
test:
script:
- echo 1231231
tags:
- build
and my gitlab runner configuration: gitlab runner configuration
I can confirm my runner is shared for projects and enabled untagged job.
I want to know how to fix this
Upvotes: 1
Views: 4838
Reputation: 1267
I wasted 5 hours on this and then I found out that when you register your runner, you need to register it with "sudo".
sudo gitlab-runner register --url https://gitlab.com --token <token>
Upvotes: 4
Reputation: 19
Another option, open Project Settings -> CI\CD -> Runners and make sure "Enable shared runners for this project" tick is enabled.
Upvotes: -1