Automate Building
A common mistake is that automated building does not fully cover what is needed for building. We need to do this version of Ci.
Run the test in a copy environment with the production environment
Strong hardware and environment support must be incorporated into continuous integration, which is especially important for commercial software.
Make it easy for anyone to obtain executable fil
Http://www.ademiller.com/tech/reports/a_hundred_days_of_continuous_integration.pdf
Using agile teams use continuous integration (CI). It is one of the extreme programinng practices and has been broadly adopted by the Community [1]. Just how effective is it? Does the effort of maintaining the CI server and fixing build breaks save time comparedTo a lengthier check-in process that attempts to never break the
project" in Jenkins.In the project, add the "build step" in the following order:Execute ShellCommandandroidupdateproject-p.--targetandroid-19Invoke AntTargetscleandebugfindbugslintSee, the FindBugs command is the ant build task we just configured.The lint command requires Jenkins to install the response plugin, which is not mentioned here.Resources:Http://www.cnblogs.com/ifantastic/p/3981295.htmlHttps://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkinsHttp://stacko
, in the browser's address bar type: http://localhost:8080/. then enter. Enter the following screen. This means that Tomcat is installed correctlyIv. Environment of JeninsThe 1.Jenkins package is divided into two types:One is the Setup.exe client package (this double-click with QQ, do not say)One is a war package2.war bag put under WebApps3. Start JenkinsRestart Tomcat:startup.bat First, then enter http://localhost:8080/jenkins/in the browserV. Configuring Jenkins1. Create a new job2. Enter the
Linux hostsAndroid SDK installation ignores JDK installation ignore Hudson install ignoreGradle Installation1: Download the corresponding gradle (here is Gradle-2.10-all.zip) 2: Unzip gradle-2.10-all.zip to the corresponding folder 3: Set the GRADLE environment variable join save to run after exitingRun againSee above to show that Gradle is running successfullyHudson Configuration1Make sure the Gradle plugin plugin is installed2git addressJoin buildSpecifies the project's root build fileRun buil
To provide a way for everyone to refer to, want to build the success or failure of the message sent to the specified URL, you can:1, a build and trigger another build B, build B to execute a plug-in2, plug-in function:(1) Use the Jenkins API to get the last build information for building a, Eg:http://192.168.212.73:8080/job/41_start_mongodb/lastbuild/api/json(2) Send the acquired build information (which can be encapsulated as required) to the specified URLthe content of the plug-in is actually
One, the code is as followsPackage com.wujianbo;/* * 3 digits, 3 times of the number of parties added to its original value, called Narcissus number */public class Demo07 {public static void main (string[] args) {//TODO Auto-generated method stubDemo07 demo07= new Demo07 ();//demo07.flowerone ();d emo07.flowertwo (); public void Flowerone () {for (int i=100; i"Automation _ Continuous Integration" ___java___
One, the code is as followsPackage com.wujianbo;/** * @author Administrator * */public class Demo02 {public static void main (string[] args) {System.ou T.println (args);D emo02 demo02= new Demo02 (); System.out.println (DEMO02); System.out.println ("Object in the Stack memory header address:" +demo02.hashcode ());d emo02.datatye (); int age=34; System.out.println (age);} public void Datatye () {int i= (int) 1000.1;char[] s= {' W ', ' o ', ' n ', ' I ', ' u '}; System.out.println (s); System.out.
=" Wkiol1jscifw0qilaaabkmuxfc8272.png "/>Note: Incorrect string value: ' \xe7\x99\xbb\xe5\xbd\x95 ' for column ' LBL ' error when testing whether Svnadmin is running properlyWorkaround: Enter the Svnadmin database to execute the following statementALTER TABLE i18n MODIFY COLUMN lbl VARCHAR (255) CHARACTER SET UTF8 COLLATE utf8_unicode_ci not NULL; 4. using JsvnadminA), create a library650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8F/09/wKioL1jSCuuB22kCAABcujcoWpM483.png "title=" 1
Brief introduction
The continuous integration of Gradle project is realized through Jenkins Slave, in which code management uses perforce, Jenkins version 2.46.2, and system is Centos7.3.
First, Jenkins configuration
1. Install and configure Jenkins Master
2. Increase slave node
Open the page, Jenkins home-> Manage Jenkins-> mange Nodes New->, the following is the configuration page
3. Installation of Perf
③ of continuous Integration: Automatically deploy code to test environment
One: This article in the last article on the basis of continuing to operate, the last one to get the code from GIT and code testing, this article will be on the basis of the previous implementation of the code to deploy to the test environment.1.1: Create a new project called Web-demo-deploy for Code Publishing, the last project Web
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.