Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Use cache for node build

Guillaume POITTEVIN
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 11, 2017

Hello,

I use Bitbucket pipeline to perform test on my project.

Here is my .yml :

image: node:8.3
pipelines:
  default:
    - step:
        caches:
          - node
        script:
          - cd build
          - npm install
          - npm test

I have this error during the process :

Cache "node": Not found

So I try this :

image: node:8.3
pipelines:
  default:
    - step:
        caches:
          - node
        script:
          - cd build
          - npm install
          - npm test
definitions:
  caches:
    node: build/node_modules

But none seems to work.

 

How could I solve this ?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events