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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

104 views 0 2
Join discussion

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