continuous integration - .gitlab-ci.yml Syntax Error -
i'm working following .gitlab-ci.yml config:
image: node:latest stages: - build - test build: stage: build script: - npm install test: stage: test script: - ./testing/test.js
when pushing gitlab, 'your pipeline failed' error , when @ failed, yaml error:
status: syntax incorrect error: (<unknown>): did not find expected key while parsing block mapping @ line 1 column 1
as far can see, image: node:latest correct. great.
the problem indentation of test job. problem making whole yml break therefore raising error on line 1. remove excessive whitespaces code below , fine.
image: node:latest stages: - build - test build: stage: build script: - npm install test: stage: test script: - ./testing/test.js
note in yaml indentation used denote structure. important pay attention it.
Comments
Post a Comment