Gitlab CI builds stuck on "created"
Problem
Since 8.11.0-ce.1, pipelines occasionally get stuck indefinitely because builds on a certain step are stuck in the created
status.
Workaround
Manually cancel the build through the API with POST: api/v3/projects/:id/builds/:build_id/cancel
. As far as I have determined, this is the only way to get the pipeline out of limbo.
Reproduce
Unknown. This seems to happen randomly. I'm using the newest Gitlab Multi Runner Docker image (gitlab/gitlab-runner:alpine
) as of today (v1.5
). What I can confirm from looking at the logs, is that the runner never receives the build. In other words, the problem seems to be situated in Gitlab itself.