Hi,
thank you for your Bug report.
After looking into this I suppose this happens when the user running Gradle does not have write access to the Gradle home directory (/home/teamcity/.gradle
in your case).
Have you been able to fix the problem, yet?
Regards,
Stefan