Uvuvwevwevwe
Uvuvwevwevwe

Reputation: 1041

GitLab CI/CD - Pipeline gets stuck when using Runner on my own Host

I've setup CI/CD on GitLab for my toy project. After installing the Runner on my own host and activating it for my project, I double-checked everything by

  1. running gitlab-runner verify and got the result

enter image description here

  1. On GitLab, I got the result after finishing the registration step (gitlab-runner register)

enter image description here

The content in config file for GiLab Runner is as following

concurrent = 1
check_interval = 0

[session_server]
  session_timeout = 1800

[[runners]]
  name = "localhost"
  url = "https://gitlab.com/"
  token = MyTokenProvidedByGitLab
  executor = "ssh"
  [runners.custom_build_dir]
  [runners.ssh]
    user = "root"
    host = "MyHost.org"
    port = "22"
    identity_file = "/d/ssh/id_rsa"
  [runners.cache]
    [runners.cache.s3]
    [runners.cache.gcs]

However, the pipeline gets stuck

enter image description here

Furthermore, I also executed the command gitlab-runner run to try making the pipeline run, but it seems to not work, below is the picture

enter image description here

Is there anything wrong in my setup steps?

Upvotes: 3

Views: 3651

Answers (1)

Naor Tedgi
Naor Tedgi

Reputation: 5707

you need to start your gitlab runner service process

first test that the runner is properly installed inside your repository dir

run

gitlab-runner exec shell <Job-Name>

if that's running properly your project then

my guess is that if we press the stages buttun we see that there isn't any available runner for this job

open command line and run ( inside your project dir containing the .gitlab.yml )

gitlab-runner.exe run

then if its start the job add this command as a service on your host on startup

Upvotes: 2

Related Questions