I registered a runner on local gitlab environment. The runner will only execute the pipeline when there is a process is running the command of gitlab-runner run
.
Once the process stops running the command, jobs will remain pending.
It is a linux(ubuntu) runner with shell executor, I tried to run systemctl start gitlab-runner && systemctl enable gitlab-runner && systemctl restart gitlab-runner
but seems not work.
One of the thing is that gitlab-runner run
will pick up jobs only being runed not as root.