Jenkins + SVN + MAVEN builds continuous integration environment

Source: Internet
Author: User

About Jenkins

Jenkins is an open source software project designed to provide an open and easy-to-use software platform that makes continuous software integration possible.

Jenkins is a continuous integration tool based on Java development that monitors ongoing duplication of work, including:
1. Continuous software release/test project
2. Monitor the work performed by external calls

Jenkins Environment Setup

Environment Note: We are using CentOS 7 x64

1, installation jdk1.7

The JDK configuration is not explained here, but remember to configure Java_home

2. Install SVN

CentOS installs SVN with Yum

Yum-y Install Subversion

    

See if the installation was successful by viewing the version information

Svnserve  --version

    

3. Install Maven

(1) installation package: http://maven.apache.org/download.cgi

(2) Upload to server, unzip, file add name


MV Apache-maven-3.2.5/opt/local/maven

(3) Configure the environment variable Vi/etc/profile, add the following content

Export Maven_home=/opt/hermes/mavenexport path= $MAVEN _home/bin: $PATH

(4) test if the installation is successful by viewing the version information

Mvn-v

  

4. Install Tomcat

(1) Download path: http://tomcat.apache.org

(2) Download the Tomcat that suits you ( Note because I installed the JDK1.7, so I need to install Tomcat8.0, if install JDK1.8, install Tomcat9.0; If the version does not match the Tomcat fails to start )

(3) The server that the Tomcat uploads, unzip, the folder renames (I rename here to tomcat8.0) can.

(4) Configure the Access port (I configured 9090 here because the default of 8080 is already occupied)

VI Tomcat8.0/conf/server.xml

  

(5) Configuring JVM size

  

Note: Here according to your own server settings, slightly larger, because I use the default to find Tomcat boot is not enough memory.

5. Deploy Jenkins

(1) Download path: Http://mirrors.jenkins-ci.org/war/latest/jenkins.war

(2) Upload the downloaded Jenkins.war package to tomcat8.0/webapps/below

(3) Start Tomcat

Note: Watch Tomcat's boot log information when you start.

(4) Visit Jenkins

<1> Enter the IP address on the browser (HTTP://IP: Port/jenkins) http://10.10.11.129:9090/jenkins

    

Entering Jenkins for the first time requires a password, password location: shown in the figure.

    

    

<2> go to the Select Plugin installation screen and select the first (install suggested plugins)

    

    

<3> Create a new first user

    

    

    

    

At this point the Jenkins installation is complete.

Jenkins + SVN + MAVEN builds continuous integration environment

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.