The error says `Incorrect type. Expected "object"`
The caches: -node syntax is taken from the example on the chaching dependencies page right here:
https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html
Hi Andrey,
Could you please post a full YAML sample as a "Code block" (ie. so we can see exactly how the YAML is formatted). You can find the "Code block" option in the "Formats" menu in the editor.
Hi Steven,
Thank you for the reply. Here is an example of how the YAML is formatted:
branches: master: - step: name: Test & Build image: node:11.9.0 caches: - node script: - yarn - yarn global add @angular/cli .................................
The keywords "name", "image" etc. need to be indented further than the "step" keyword:
branches: master: - step: name: Test & Build image: node:11.9.0 caches: - node script: - yarn - yarn global add @angular/cli
Apologies for the misleading post. Yes, they are in my yaml. VSC has a very strict setting and all the indentation errors are highlighted.
The code block formatter did not work properly so I indented the lines manually here.
The point is that the line with ‘-node’ is marked as wrong syntax and I cannot find out why.
It looks like you're new here. Sign in or register to get started.