Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

GRADLE_USER_HOME environment variable not respected by a runner


I am hitting this on mac, but I suspect it is also a problem on Windows as well. On linux, it's docker, so not really a problem.

I am using the standard gradle cache as usual for gradle builds. I suspect this may be the problem as it is defined in the docs as `~/.gradle/caches` but really should be `${GRADLE_USER_HOME}/.gradle/caches` or `${GRADLE_USER_HOME:-~}/.gradle/caches`  ???

Is this the problem and if so, can it be fixed? In the mean time, will it work if I define a custom cache that uses this approach? This relies on cache definitions respecting environment variables. 

I should mention, that in a shared environment like Mac or Windows, this causes corruption of the gradle cache if the same user is also running gradle builds using the user default location.


1 answer

0 votes

Hi @Bob Swift _Appfire_ ,


Thanks for raising this issue. Are you currently blocked with the problem?

At the moment there is a limitation on sharing the caches on multiple platforms, especially with windows, where it could lead to errors. For more details please check Limitations for Windows Runner

Do you need to share the cache between different platforms i.e. Windows and Non Windows? Please provide more details on the use case and the scenarios that you are trying to achieve, it will help us understand the problem in detail.



Suggest an answer

Log in or Sign up to answer

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