The development of Android often requires: development environment, test environment and production environment test our application in three environments, often encounter such a situation, testers find developers say, can give me a XX environment of the package, I need to test, sometimes busy development can't pack in time, Using Jenkins+svn+gradle to build Android apps, it's easy to get it done with one click.
Jenkins on the test JAVA,SVN plug-ins are available, only need to increase the Gradle plugin.
There are many ANDROID-SDK installation methods online.
Problems encountered:
1. After deleting the OPENJDK, the Jenkins Launcher reported the following error:
Starting Jenkins bash:/usr/bin/java:no such file or directory
Modify the Jenkins startup configuration file to specify the Java installation path.
Vim/etc/init.d/jenkins
2. The system is glibc-2.14 need 2.14 support when centos6.5 is built.
Upgrade glibc-2.14:
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.14.tar.gz
TAR-XVF glibc-2.14.tar.gz
TAR-XVF glibc-ports-2.14.tar.gz
MV glibc-ports-2.14 Glibc-2.14/ports
mkdir Glibc-2.14/build
CD Glibc-2.14/build
.. /configure--prefix=/usr--disable-profile--enable-add-ons--with-headers=/usr/include--with-binutils=/usr/bin
Make
Make install
Above completion without error, check the library file, found/lib64/libc.so.6 soft link to 2.14 version
Ll/lib64/libc.so.6
3.ANDROID-SDK needs to be built with Jenkins authorization.
4. This must be selected or not get the variable
Linux under Jenkins Pack apk