【发布时间】:2020-12-18 23:43:43
【问题描述】:
我是编写管道的新手,下面是我正在尝试运行的工作
test website:
image: node
stage: test
script:
- npm i
- npm i -g gatsby-cli
- gatsby serve &
- sleep 3
- curl "http://localhost:9000" | grep -q "Gatsby"
但它在日志下面的最后一步失败了
gatsby serve &
$ sleep 3
$ curl "http://localhost:9000" | grep -q "Gatsby"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 9000: Connection refused
ERROR: Job failed: exit code 1
请帮我解决这个问题,也帮助我理解错误。
【问题讨论】:
标签: git docker gitlab localhost gitlab-ci-runner