【发布时间】:2019-04-29 15:56:53
【问题描述】:
我正在尝试使用私有运行器而不是共享运行器在 GitLab.com 上设置 CI 管道。该项目使用 Node,所以我使用的是 node:6 图像。
.gitlab-ci.yml 看起来像这样:
image: node:6
stages:
- test
javascript_tests:
stage: test
script:
- npm install
- npm run test:unit
when: always
跑步者在“跑步”阶段停留了大约 30 分钟,然后才开始输出相关内容:
npm ERR! fetch failed
http://10.252.156.164:4880/@types%2fjsforce/-/jsforce-1.9.2.tgz
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 10.252.156.164:4880
我能做些什么来解决这个问题?我认为在 DigitalOcean 液滴上安装 gitlab-runner 是唯一需要担心的事情。
【问题讨论】:
标签: npm continuous-integration gitlab npm-install gitlab-ci-runner