CentOS7 build jenkins

I. Overview

Jenkins is an open source software project. It is a continuous integration tool based on Java developed to monitor continuous repetitive work. It aims to provide an open and easy-to-use software platform that makes continuous software integration possible.

Installation Environment

Operating system: centos 7.6

Two, install openJDK

Install epel first

yum install -y vim wget epel-release

Then install jdk1.8

yum install java-1.8.0-openjdk

View version

# java -version

openjdk version "1.8.0_102"OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

Two, install jenkins

Install the LTS version of jenkins

  1. Pull the configuration of the library to the local corresponding file
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
  1. Import public key
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  1. Install jenkins
yum -y install jenkins

Familiar with jenkins configuration

1. System configuration file

cat /etc/sysconfig/jenkins | more

Several important configuration item information can be obtained

2. Configuration folder

This location is important

ls /var/lib/jenkins

There are several folders and files such as jobs, logs, and plugins. Do not delete randomly
This time I mainly looked at the plugins folder, all plugins are in it, such as the plugin ssh-slaves, there will be a ssh-slaves folder and ssh-slaves.jpi.
When a plug-in is not installed successfully, there will be a file ending with .tmp

3. Log

Two positions related to logs:

start up

Start service

service jenkins start

Four, configuration

Browser access

IP address:8080

Get the administrator password

Follow the prompts, go to /var/lib/jenkins/secrets/initialAdminPassword, copy and paste in, continue

Choose installation method

Recommended by default, the one on the left. The second custom plug-in, if you know what plug-ins are needed, what are the plug-ins, then choose custom

Waiting for plugin installation

If it is normal, nothing to say. If like this, some plugins fail, refresh the page, and the next step. The failed plug-in will be installed later.

Create user

Home

Reference link for this article:

https://www.cnblogs.com/lianstyle/p/8778244.html

Recommended Posts

CentOS7 build jenkins
Jenkins build on centos
CentOS + Jenkins
Centos build lnmp
Centos7 build python3.8.5+scrapy+gerapy
CentOS7.3 64 bit, build Zabbix3.4
CentOS build private git
Linux (centos7) build gitlab
Build k8s1.9.9 on centos7
CentOS6.7 build LNMP environment
Centos7.6 build LNMP environment
Centos7 build Kubernetes cluster
Build Hadoop in CentOS
Install Jenkins under Centos 7
Centos7 build DNS service
Install Jenkins on centos7
CentOS 7 build LNMP environment
Build docker environment under Centos6.5
CentOs7.3 build Solr stand-alone service
Build OpenV** Server under CentOS7
CentOs7.3 build RabbitMQ 3.6 stand-alone service
Build zabbix monitoring zabbix4.2 in CentOS7.6
CentOS 8 (2)
Build OpenLDAP server under CentOS7
Build MariaDB replication on CentOS
CentOs7.3 build ZooKeeper-3.4.9 stand-alone service
CentOS 8 (1)
CentOs7.3 build SolrCloud cluster service
Centos7 installation and configuration of Jenkins
CentOS8.1 build Gitlab server detailed tutorial
How to install Jenkins on CentOS 8
Centos6 method steps to build gitlab
Build an FTP server under centos7
Build Elasticsearch 6.2.4 (centos) based on docker
Build Nginx environment on Linux (CentOS)
(centos7) linux build nginx load balancing build
Centos7 build java web server tomcat
Build Discuz Forum based on CentOS
Build Yum private warehouse in Centos7.3
virtualBox install centos, and build tomcat
Install Jenkins on linux centos (non-docker way)
Build WeChat applet service based on CentOS
Centos7 uses vim to build powerful pyt
Build WeChat applet service based on CentOS
centos7 python3.7+vi
CentOS7 build FastDFS distributed file system (on)
CentOS + Python3.6+
(1) Centos7 installation to build a cluster environment
[PHP] Build a PHP operating environment under CentOS
Jenkins installation and deployment tutorial under CentOS 7
1.5 Install Centos7
2019-07-09 CentOS7 installation
centos7_1708 installation
CentOS7 build gerrit code review service method
Centos 7.5 python3.6
CentOS7 build FastDFS distributed file system (below)
Build Nginx based on Centos 7 (including virtual host)
Build a ScaleIO distributed storage cluster under CentOS7
How to quickly build Nginx server under CentOS
Build Discuz Forum in LNMP Environment under CentOS7
Centos7 tutorial to build a master-slave DNS server