Correction install SDK not working

This commit is contained in:
Mathieu Sanchez 2019-04-25 09:42:45 +09:00
parent 98ba1f3d88
commit 9b6fb43390
2 changed files with 3 additions and 3 deletions

View File

@ -8,5 +8,5 @@ docker run --detach \
--restart unless-stopped \ --restart unless-stopped \
jenkins/jenkins:lts jenkins/jenkins:lts
docker cp install-sdk.sh jenkins:/root/install-sdk.sh docker cp docker/install-sdk.sh jenkins:/root/install-sdk.sh
docker exec jenkins "/root/install-sdk.sh" docker exec jenkins "/root/install-sdk.sh"

View File

@ -4,8 +4,8 @@ wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip -P /ro
unzip /root/sdk-tools-linux-4333796.zip -d /root/ unzip /root/sdk-tools-linux-4333796.zip -d /root/
rm /root/sdk-tools-linux-4333796.zip rm /root/sdk-tools-linux-4333796.zip
yes | ./tools/bin/sdkmanager --licenses yes | /root/tools/bin/sdkmanager --licenses
yes | ./tools/bin/sdkmanager "platforms;android-28" --sdk_root=/opt/android-sdk yes | /root/tools/bin/sdkmanager "platforms;android-28" --sdk_root=/opt/android-sdk
apt-get update apt-get update
apt-get install -y curl apt-get install -y curl