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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -