This job is stuck, because you don‘t have any active runners that can run this job.

This job is stuck, because you don’t have any active runners that can run this job.

前情:提交了job,然后一直在pending,感到很奇怪,打开发现了这个错误,联想到刚刚gitlab替换了域名,应该是gitlab-runner域名出了问题,于是重新配置了gitlab ci的gitlab-runner.

可以先移除之前的gitlab runner:

gitlab-runner verify --delete

options: 打开project的settings里的的CI/CD,复制域名以及token,这里是gitlab的官方文档.

This job is stuck, because you don‘t have any active runners that can run this job._第1张图片

docker镜像那里要填入docker的基础镜像
register好之后,gitlab-runner run --user XXX(XXX应该添加在docker的用户组中,否则会有权限的问题.)

结果

This job is stuck, because you don‘t have any active runners that can run this job._第2张图片

你可能感兴趣的:(python,linux,Git)