Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up gitlab CI runners?

I am asking the question here, because documentation didn't help me.

During runner's setup, 2 things are being asked: url of gitlab CI coordinator and registration token. I don't get what any of them should be.

As for url, it could be either url of gitlab CI web interface (ex: http://localhost:80/) ot url related to build, which is described in build's advanced properties.

Registration token could be something from documentation - but the link to it is dead (see: http://gitlab-ci-domain.com/admin/runners) or registration token from build's advanced properties.

However, when i try to supply to runner's setup url and registration token from build properties, i get access error which informs me that registration failed. Due to lack of understanding what those parameters should be, i cannot determine what is wrong.

like image 265
Srv19 Avatar asked Sep 09 '14 19:09

Srv19


2 Answers

the Url is your Gitci Url. the token you mention its in your gitlabci under "runners" next to the line:

"To register new runner you should the following registration token. With this token the runner will request a unique runner token and use that for future communication"

like image 90
Paulo Botelho Avatar answered Dec 17 '22 18:12

Paulo Botelho


If you can access the settings for a project, then you can find the information in Project Settings > Runners. There should be a box under Specific Runners that has the URL and token.

EDIT: As of GitLab 9.0, this info can be found under Settings > CI//CD Pipelines (per Josh Noe)

EDIT: New location as of GitLab 9.3 (maybe earlier): Settings > Pipelines

EDIT: New location as of GitLab 10: Settings > CI / CD > Runners Settings

like image 36
Bryan Downing Avatar answered Dec 17 '22 16:12

Bryan Downing