I'm using Gitlab's shared runner. Build has been in 'pending' state for over 20 minutes.
How to debug this? is it something to do with the runner availability or script execution issue.. Is it possible to gain more insight by any means?
For a shared runner, have an administrator go to the GitLab Admin Area and click Overview > Runners. For a group runner, go to Settings > CI/CD and expand the Runners section. For a project-specific runner, go to Settings > CI/CD and expand the Runners section.
With shared runners, this means that anyone that runs jobs on the runner, can access anyone else's code that runs on the runner. In addition, because you can get access to the runner token, it is possible to create a clone of a runner and submit false builds, for example.
I don't think the UI supports viewing a shared runner's queue. However, this 'pending' state can be caused by things other than a queue.
Check the tags for that pipeline stage against the tags supported by the runners available to the runners activated for your project:
Remember, tags can vary from stage to stage, so it's possible for the first few stages to work before your pipeline is blocked.
Gitlab-ci will indicate 'pending' when a runner cannot be found with tags matching a given stage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With