之前一直能正常跑的CI,这几天突然就不行了,报错Job is stuck. Check runners。

找运维确认后,是gitlab-runner 升级了,升级之后.gitlab-ci.yml必须要配置tags才行,需要指定是哪个runner。更改之后就正常啦
image: alpine:latest
pages:
stage: deploy
tags:
- yourRunner
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master
本文介绍了一次GitLab Runner升级导致CI流程失败的问题及其解决办法。由于升级后必须在.gitlab-ci.yml中配置tags来指定runner,文章提供了具体的配置示例。

562

被折叠的 条评论
为什么被折叠?



