Build Environment
Target Build Machine
Ubuntu 14.04 Server
Osx
Windows 7
Build Server
Jenkins ( https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu ) Android
Build Method
Maven (http://books.sonatype.com/mvnref-book/reference/android-dev.html)
Gradle (https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins)
1. Jenkins
1.1. Jenkins Installation
2.1. Android SDK Download
2.2. Unzip file
2.3. Delete file
2.3. Environment variables Setting
2.5. Permission allow Android Sdk tools
2.6. if 64bit os , install 32-bit libraries
2.7. Update Android Sdk
Target Build Machine
Ubuntu 14.04 Server
Osx
Windows 7
Build Server
Jenkins ( https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu ) Android
Build Method
Maven (http://books.sonatype.com/mvnref-book/reference/android-dev.html)
Gradle (https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins)
1. Jenkins
1.1. Jenkins Installation
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key \ | sudo apt-key add -sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ \ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins1.2. Start Jenkins
sudo service jenkins start2.Android Sdk
2.1. Android SDK Download
cd /opt sudo wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
2.2. Unzip file
sudo tar xzf android-sdk_r22.3-linux.tgz
2.3. Delete file
sudo rm -rf android-sdk_r22.3-linux.tgz
2.3. Environment variables Setting
sudo vi /etc/profile.d/android.sh export ANDROID_HOME="/opt/android-sdk-linux"export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"2.4. Apply Environment variables
source /etc/profile
2.5. Permission allow Android Sdk tools
sudo chmod -R 755 /opt/android-sdk-linux
2.6. if 64bit os , install 32-bit libraries
sudo apt-get install libncurses5:i386 libstdc++6:i386 ia32-libs sudo reboot -r now
2.7. Update Android Sdk
android update sdk --no-ui
댓글
댓글 쓰기