First thanks for replying. Your question made me revisit the registering process so I registered a runner using sudo gitlab-runner register and followed all the steps. Then I did sudo gitlab-runner restart and then sudo gitlab-runner list with this outcome:
So the configuration file is listed under /etc/gitlab-runner, I wanted it to be under /opt/test_sans_rewrite but for the sake of simplicity I guess I’ll have to leave it under the “default” location.
Now, when the server clones the repository, where in the filesystem is it cloned? I want the server to clone within directory /opt/test_sans_rewrite. How do I achieve this?
Thanks, I set builds_dir = /opt/test_sans_rewrite and the project ended up being cloned unto /opt/test_sans_rewrite/5feb62ea/0/rhf/sans-rewrite.
This directory is persistent when testing different commits, which is OK as long as the commits belong to the same branch. I have to check if the directory is the same when testing different branches.