Linux Learning: Continuous integration-Install Jenkins Continuous integration platform-05

Source: Internet
Author: User

One, Jenkins needs to use MAVEN, so first install Maven

1. Decompression

[Roo[email protected] tar]# TAR-ZXVF apache-maven-3.5.0-bin.tar.gz-c/opt

2. Renaming

[Email protected] opt]# MV Apache-maven-3.5.0/maven

3. Configure MAVEN Environment variables

Export Java_home=/opt/jdkexport maven_home=/opt/mavenexport path=.: $JAVA _home/bin:maven_home/bin: $PATH

To refresh the configuration:

Source/etc/profile

4. Settings.xml Configuration

View more http://1754966750.blog.51cto.com/7455444/1911760

Second, installation Jenkins

1. Create Folder Jenkinshome

[Email protected] opt]# Mkdir/opt/jenkinshome

2. Configure Environment variables

Export Java_home=/opt/jdkexport maven_home=/opt/mavenexport jenkins_home=/opt/jenkinshomeexport PATH=.: $JAVA _home/ Bin:maven_home/bin: $PATH

Refresh configuration: Source/etc/profile

3. Modify Tomcat memory (tomcat/bin/catalina.sh)

java_opts= '-xms256m-xmx512m '

4. Upload Jenkins.war to Tomcat and start

Visit: Http://192.168.91.7:8080/jenkins

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/99/FD/wKiom1lP3sWRGc_aAACQU12L-QM061.png "title=" ~y8{ itmji5h (k%w]8hx~21h.png "alt=" Wkiom1lp3swrgc_aaacqu12l-qm061.png "/>


650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/99/FD/wKiom1lP3tjxpMifAAAPmu6l7x0172.png "title=" W] 1gi4vtc}qaetk2wfe4ojn.png "alt=" Wkiom1lp3tjxpmifaaapmu6l7x0172.png "/>

Select Install plugin, left for all plugins, right to customize installation

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/99/FD/wKioL1lP3yXQlC_8AADxPLi5y1o647.png "title=" NVA8 " ZU4VIPNH7CU%[C) ynt.png "alt=" Wkiol1lp3yxqlc_8aadxpli5y1o647.png "/>

When the above steps are complete, the first time you run Jenkins, you need to set up administrator information

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/99/FD/wKioL1lP4CLh55DZAABE7FTHPA4957.png "title="}6c " FO6R%2S) 5wrp]p~9iae.png "alt=" Wkiol1lp4clh55dzaabe7fthpa4957.png "/>


650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/99/FD/wKioL1lP4HOSjWy9AABnuMObuPg568.png "title=" 7) u[ U8n3 (r1ay% (GR (kkhja.png "alt=" Wkiol1lp4hosjwy9aabnumobupg568.png "/>


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/99/FD/wKiom1lP4TizTzHJAAFpmX7qXtY755.png "title=" k{{x3 ) h~6hsz1@msagnczvj.png "alt=" Wkiom1lp4tiztzhjaafpmx7qxty755.png "/>

Set Tomcat's character set: Server.xml

<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443" UR iencoding= "UTF-8"/>

This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1941793

Linux Learning: Continuous integration-Install Jenkins Continuous integration platform -05

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.