Jenkins+maven continuous integration of Java projects

Source: Internet
Author: User
Tags set up email

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
    1. Installing Tomcat
    2. Download Jenkins.war file from Jenkins official website. Website address: http://jenkins-ci.org/, note Select the latest version of long-term support release
    3. Deploy the war file to Tomcat
    4. Start Tomcat
    5. Configure Jenkins in the browser, browser address: Http://{tomcat ip}:{tomcat port}/jenkins/
Jenkins System settings

Menu path: System Management-Manage jenkins-system settings

    1. Set Home Directory
    2. 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.
    3. Set Subversion
    4. 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:

    1. Set the download path for SVN code
    2. Set the date for automatic construction
    3. Set the path to the Pom file
    4. Set parameters for the MVN command
    5. Set the action of post-build

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.