Reputation: 1041
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
gitlab-runner verify
and got the resultgitlab-runner register
)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
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
Is there anything wrong in my setup steps?
Upvotes: 3
Views: 3651
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