The Jenkins server was recently configured to document the basic process. (Of course, also encountered a number of small problems, the soldiers will block punches just)
Jenkins installation
- Installing Tomcat
- Download Jenkins.war file from Jenkins official website. Website address: http://jenkins-ci.org/, note Select the latest version of long-term support release
- Deploy the war file to Tomcat
- Start Tomcat
- Configure Jenkins in the browser, browser address: Http://{tomcat ip}:{tomcat port}/jenkins/
Jenkins System settings
Menu path: System Management-Manage jenkins-system settings
- Set Home Directory
- Set up maven. Note to pre-install the Maven3.1.1 version in the operating system. Note that you cannot use a maven3.2.x version, or you may run an error.
- Set Subversion
- Set up email notifications. To pre-establish a mail server in the operating system.
Jenkins Plugin
Menu path: System Management-Manage the jenkins-management plug-in.
Install the following plugins:
1. Maven Project Plugin
2. Subversion Plugin
3. Checkstyle Plugin
4. Findbugs Plugin
5. PMD Plugin
6. Warnings Plugin
MAVEN Engineering Configuration
Jenkins supports two types of engineering: Freestyle Engineering and MAVEN engineering. If the code is constructed with MAVEN, you can create a MAVEN project directly.
After you create a new MAVEN project, you need to set the following entries:
- Set the download path for SVN code
- Set the date for automatic construction
- Set the path to the Pom file
- Set parameters for the MVN command
- Set the action of post-build