From: Hans-Christoph Steiner Date: Tue, 14 Mar 2017 11:39:03 +0000 (+0100) Subject: buildserver: allow gradle to install newer build-tools versions X-Git-Tag: 0.8~107^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3e895eadd2ddb90cc81f94fe7856b8075927e11c;p=fdroidserver.git buildserver: allow gradle to install newer build-tools versions gradle will now automatically download and install missing bits of the Android SDK. While we prefer to have the SDK packages fully verified, we should allow this behavior on the buildserver to ensure that builds work even when the buildserver can't be updated. Since each build starts from a clean snapshot, this auto-installed build-tools will only be used for the single build, so it won't affect other apps. --- diff --git a/buildserver/provision-android-sdk b/buildserver/provision-android-sdk index 00456fbe..56f72e06 100644 --- a/buildserver/provision-android-sdk +++ b/buildserver/provision-android-sdk @@ -81,3 +81,7 @@ echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;sup chmod -R a+rX $ANDROID_HOME/ find $ANDROID_HOME/ -type f -executable -print0 | xargs -0 chmod a+x + +# allow gradle to install newer build-tools versions +chgrp vagrant $ANDROID_HOME/build-tools +chmod g+w $ANDROID_HOME/build-tools