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

How to setup Gradle Remote Build Cache

Bitbucket pipeline has a mechanism in place that allows to save and restore the Gradle cache directory. We work with larger projects (following the mono-repository) approach, where it approach may not scale too well. A Gradle cache grows rather quickly and it takes substantial resources already to just pack/unpack the Gradle cache. Moreover, different steps in the pipeline may only need small parts of it.

It would be desirable to have support for https://proandroiddev.com/speed-up-your-build-with-gradle-remote-build-cache-2ee9bfa4e18. As it allows to incrementelly check whether a given task has already been performed.

A simple HTTP repository would already  suffice for it. In other project we made use of Artifactory generic repositories for this purpose. Or if no such feature is planned. Is there a possiblity to place such a server "close" to the Bitbucket pipeline agents?

 

 

 

1 answer

Hello Remo,

Currently there's no built-in support for that Gradle remote build cache. You can open a feature request for support here: https://bitbucket.org/site/master/issues/new

We also have no built in feature to place servers "close" to the Bitbucket Pipelines agents. We currently run in us-west and us-east. But when and the proportion of traffic varies due to availability of the regions. So it might be difficult to get a consistent performance improvement. That sounds like an interesting feature to add support for, if you'd like to open a feature request.

Sorry I couldn't provide anything more useful.

Thanks,

Phil

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,027 views 0 3
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