-1
我用下面的.gitlab-ci.yml配置工作:.gitlab-ci.yml語法錯誤
image: node:latest
stages:
- build
- test
build:
stage: build
script:
- npm install
test:
stage: test
script:
- ./testing/test.js
當推到GitLab,我收到了「您的管道爲失敗」的錯誤,當我看看是什麼失敗了,它的一個yaml錯誤:
Status: syntax is incorrect
Error: (<unknown>): did not find expected key while parsing a block mapping
at line 1 column 1
據我所知,image:node:latest是正確的。任何幫助,這將是偉大的。
哦親愛的上帝!對我來說是多麼渺小。感謝您糾正:)。問題解決了。 – sudodashell