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