1. environment build a) tomcatJAVA_HOME = C: \ Program Files \ Java \ jdk1.6.0 _ 24JRE_HOME = C: \ Program Files \ Java \ jre6b) antANT_HOME = C: \ apache-ant-1.8.2c) jenkins downloads the war package on the http://jenkins-ci.org website, then dumping the tomcat webapp folder, start tomcat. 2. Add a new job, enter the job name, and select "build a free-style Software Project ". -> Configure the task storage directory (the directory where jenkins download code is stored)-> Configure the code control tool used by the task. If it is svn, select "svn update as much as possible" for the URLcheckout policy written to svn, which indicates that the update operation is performed once the code is modified-> Configure the trigger condition of the task, the configuration format is ***, which indicates minute (0-59), hour (0-23), and number (1-31) of a month), month (1-12), day of the week (0-7, 0 and 7 indicate Sunday)-> Configure the compilation, enter the target in the ant script, the default script is build in the root directory. save the xml file and go to the task page. Select "build now". You can see the build result later. After the build is complete, you can view the results. Blue indicates success, and red indicates failure. 3. the ant script is written in the android project. Go to the tool directory of the android SDK, enter the android list targets command, view the ID, and then enter: android update project-n test-t 1-p d: \ test to generate the ant script. Test is the project name, 1 is the ID number displayed when running the android list targets command, and d: \ test is the build generated in the directory where the project is located. by default, the following targetdebug files are available in xml files: build clean with debugging Signature: Clear the compiled file release: Build an application, and generate an apk with a signature before releasing install: install it to the simulator or device reinstall, uninstallbuild. the xml file can be customized to install jenkins in ubuntu. You only need to perform the following steps. apt-get update2.apt-get-f install3.dpkg-I daemon_0.6.4_i386.deb (32-bit, daemon_0.6.4-1_amd64.deb can be installed for 64-bit Operating Systems) 4. dpkg-I jenkins_1.424.6_all.deb (32-bit 64) after installation, you can access it through http: // localhost: 8080. to modify the port, run the following command: 1. kill jenkins processes 2. run the following command java-jar/usr/share/jenkins again using the jenkins account. war -- httpPort = 1234 then you can use