Linux under Installation Configuration Jenkins

Source: Internet
Author: User
Tags svn

The following is a brief introduction to the next CentOS7 under the installation configuration Nuxus and CentOS7 under the firewall configuration, today continue to introduce CentOS7 under the installation configuration of Jenkins.

Download

When I installed the configuration, I used the RPM package of Jenkins, as follows:

Https://jenkins.io/index.html

Installation Configuration

First: Install the RPM package:


TAR-ZXVF nexus-2.11.3-01-bundle.tar.gz


Second: Enter the system configuration file of Jenkins and modify the relevant port number (also can not modify)

The default jenkins_port for JENKINS is the 8080,jenkins_ajp_port default port is 8009, which conflicts with Tomcat's default port. I change this to 8088 and 8089.


Vi/etc/sysconfig/jenkins


Third: Detects if the JDK is installed and installs the JDK if no JDK is installed

IV: Check if Jenkins is configuring the JDK, add its own JDK path after candidates, as follows:


Vi/etc/rc.d/init.d/jenkins

Start


Service Jenkins Start

                




Access

after the successful launch, you can access the address as follows: 192.168.8.128:8088, as follows:

Configuration

Install, successfully access, and then automate the construction of the project configuration.

first: Go to the page, click New

Enter the project name and select "Build Maven project"


Second: Enter the configuration

In the source office select SVN, because I use SVN, configure the appropriate URL address, as follows

If this is the first time you need to enter the corresponding SVN repository username and password.

Third: Build triggers


Fourth: Select System Management, System settings

JDK configuration: Alias input, configure your Java_home


The MAVEN configuration is as follows:


Email notification


This will be configured, after saving, click Build Now, because it is the first time to build, so need a little patience.

Common Errors

Error One: Warning appears when Jenkins starts.

Solution: Use the following command to resolve           

Systemctl daemon-reload

Systemctl Restart Jenkins

Error Two: Jenkins is configured correctly for the entire installation, but is not successfully accessed at the end of the visit. The reason is that the firewall does not allow the corresponding port access.

Solution: Increase the configuration of the firewall, configuration can refer to the previous blog: CentOS7 Firewall modification.



Linux under Installation Configuration Jenkins

Related Article

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.