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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipelines caching with yarn workspace

My repo current setup under yarn workspace. After I setup caching, everything works fine till repo has no new dependencies.

When I add new dependencies and create Pull Request with yarn.lock file, the Pipeline still download old cache instead of install new dependencies and create new cache.

Is it expected behavior?

If "yes", am I need to manually delete old caches before create Pull Request contains yarn.lock file?

If "no", how can I setup for pipelines force to install new dependencies and create new caches?

1 answer

1 accepted

1 vote
Answer accepted

Hello @Trang Công Thành ,

This is expected behaviour. The cache will expire automatically in 7 days after creation, the first build after that will repopulate it with new dependencies. So for an update it can take up to a week to be reflected in the cache.

See this documentation page, specifically:

When does a cache get cleared?

Any cache which is older than 1 week will be cleared automatically and repopulated during the next build. Additionally, caches can be cleared manually in the Bitbucket UI.

Hope this helps.

Cheers,
Daniil

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,886 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you