[System integration] Android Auto Build system

Source: Internet
Author: User

First, Introduction

Android App Auto-build server to automatically download app code, automatic packaging, publishing, to establish such a server, the key to solve the following issues:

1. Android App Automation package
Android packaging is usually manually packaged through eclipse or the UI interface of studio, and if the system is to be packaged automatically, it must be in the console environment;
Just follow Google's documentation and turn eclipse or studio engineering into Ant or Gradle engineering, and you'll be able to package it in the console environment;
Here, we choose ant, mainly it is fault-tolerant, encounter picture format and other problems will not interrupt the entire process, and we in the packaging Gradle project, it will be encountered any error can interrupt the entire process (due to the time is tight, we did not carefully look for changes in the Gradle interrupt method, If a netizen knows can tell me).

2. Task Submission method is simple
Since it is an automated build server, there should be a user-friendly, easy-to-configure task submission UI. Before we knew Jenkins, we wrote our own UI system, and with Jenkins it was much easier to simply configure the build server to integrate with Jenkins and manage the build service with Jenkins ' powerful visualization tools.

Note:

Android app build system need to open SSH service, and write a can pass in parameters, outgoing results, and can complete the download code, packaging, publish to FTP build script, through the SSH service and build the script, build the server can be integrated with Jenkins;

Second, the following is my built Android app auto-build Server Detailed Introduction

Task Submission Interface:

Svn:

Ftp:


1) System Architecture
Operating system: Ubuntu Server 14
Application Environment: Android SDK, Ant, jdk

2) Build Process

1. Submit a Package task
Click on Kxd_android_01_svn on the CI to start detecting if the code is updated, then trigger the Android build server to pack

2. Android Build Server Packaging
2.1 Detecting the presence of KXD Android products on SVN
2.2 Copy the current code to the tag
2.3 Export current code to/home/autobuild/kxd_android/build
2.4 Generating an ant build.xml file
2.5 Running Ant Clean
2.6 Running Ant release
2.7 Copy apk and log to FTP
2.8 Outgoing params to/home/autobuild/kxd_android/params.txt

III. Security Issues:
After the automatic build is completed, the shell must be added to prevent decompile before it is officially released, and if the shell program supports the Linux console, it can be added to the build script.

[System integration] Android Auto Build system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.