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

Bitbucket cache

venkatcss August 23, 2019

Hi Team,

I have added bit-bucket cache into my configuration file.

After added when i ran the pipeline still it's same build time it's took the pipeline.

So please check it. is it correct or any change on my configuration file on cache part..

if any modification please change on that

 

Please reply ASAP

 

"bitbucket-pipeline.yml"

---
image: "node:10.15.0"
pipelines:
branches:
development:
-
step:
deployment: test
name: "install and build"
caches:
- node
script:
- "apt-get update -y"
- "apt-get install -y zip"
- "cd admin/front-end"
- "npm install"
- CI=false
- "npm run build"
- "zip -r /tmp/artifact.zip *"
trigger: automatic
artifacts:
- admin/front-end/build/**
-
step:
image: "python:3.5.7"
name: test
caches:
- pip
script:
- "apt-get update -y"
- "pip install boto3==1.9.197"
- "apt-get install -y zip"
- "zip -r /tmp/artifact.zip *"
- "python codedeploy_deploy.py"

 

 

Regards,

Venkat

1 answer

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2019

Hi @venkatcss 

Your configuration seems fine (assuming the indentation is fine), could you verify that the caches are listed by clicking on caches button as defined in https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html and additionally could you upload raw log of your pipeline so I can verify it caches are uploaded/downloaded properly?

Thanks,
Peter 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events