GitLab CI 构建仍在等待中 [英] GitLab CI builds remains pending

查看:51
本文介绍了GitLab CI 构建仍在等待中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

We recently started to use GitLab-CI on the gitlab.com free service. At first everything went fine, but now, seems like we can't build our project anymore. The builds are shown as pending and doesn't do anything.

Here's what we have in our builds list:

And if we check the details of a build:

As you might notice, in the list, each build is assigned to a runner id, but in the details page, the runner section is blank.

At first, we thought it was just latency caused by gitlab.com ingrastructure, but it's really just stuck there...

EDIT

It's more than 1 year ago but I keep having notifications about this question. If I recall properly, the problem was due to GitLab itself. Follow the GitLab docs and make sure your setup is valid, and hope for the best !

解决方案

If you are working with local gitlab-runner, like macOS or custom runner that you have been made, you should start running jobs manually.

Based on this topic on gitlab documentation you should start manually in user-mode or system-mode based on where you executing this command

Run in terminal

If you did not started gitlab-runner yet

gitlab-runner start 

system-mode execution

sudo gitlab-runner run 

user-mode execution

gitlab-runner run 

这篇关于GitLab CI 构建仍在等待中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆