Test environment: Centos6.5_x64
Java
Jenkins
Svn+apache
Tomcat
Purpose of implementation:
With Jenkins, Jenkins automatically updates the code to the Tomcat application directory and restarts tomcat when there is code update for SVN
The first step: Environment construction
Svn+apache Installation:
Tomcat installation: (not much to say)
Jenkins installation, directly put the war package into Tomcat's WebApps directory to run, website download
Wget
After starting the input http://ip:port/jenkins to the following interface, that is, the installation is successful
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m02/75/f4/wkiom1zfkzujjsn0aaenzwkjlnq561.png "title=" 0e@5lddqhpu]$}) AWI1A]AN.png "alt=" Wkiom1zfkzujjsn0aaenzwkjlnq561.png "/>
Step Two: System configuration
Click on System Management, system settings settings related to environment variables (Java/maven, etc.)
Step three: Build a free-style job
Click New: Fill in the item name: Give the job a name
Choose: Build a free-style software project
Configure SVN
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/75/F4/wKiom1ZFlgjQC-D6AAA91gev_ng182.png "title=" 2dn2 ' 7 }5{76r]1_) (' 5jltj.png "alt=" Wkiom1zflgjqc-d6aaa91gev_ng182.png "/>
Configuring Build Triggers
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/75/F4/wKiom1ZFlqWzaGlUAABIbXG4UE4582.png "title=" g2ef% Vb_zl9kyphakb3s%id.png "alt=" Wkiom1zflqwzagluaabibxg4ue4582.png "/>
Configuration build Steps
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/75/F2/wKioL1ZFmBbhNPOmAACR07dJ9q0965.png "title=" j[hb_) J1XYZQ] $LUL) 4ii%4.png "alt=" Wkiol1zfmbbhnpomaacr07dj9q0965.png "/>
Here, a simple auto-update job is completed.
Fourth Step: Test
Submit new code, wait five minutes to see if it takes effect (no more instructions)
As a result of the initial knowledge of Jenkinx, will only be simple construction, follow-up will continue in-depth study
Automatic project deployment using JENKINS+SVN (Native Auto-chapter)