Gitlab API : Get pending builds without register

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Hi,

I'm looking for an easy way to get pending builds for a runner without "register" (The idea is to start/stop the runner only when required, it's more or less related to gitlab-foss#3052 (closed)).

Currently, it's not trivial to get list of pending builds for a runner without register (/ci/api/v1/builds/register) even if register get the result I'm looking for. What we can do today: Get ID of all projects then get builds of all projects (using Build API) and finally check the status according to the runner tag we're looking for.

What about adding a CI API to just get pending builds for a runner ? (like register API except it doesn't register it, just returns the list).

Thank you

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading