CentOS + Jenkins

CentOS + Jenkins

2018.09.14 15:04:04 Word count 507 Reading 94

1. Install JDK

Confirm that the JDK has not been installed before. If it is installed, make sure that the jdk is not the gcj version, otherwise Jenkins may run abnormally and you need to uninstall and reinstall the JDK;

# java -version
# yum remove java
# yum search openjdk

image.png

# yum install java-1.8.0-openjdk

[ root@localhost ~]# java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)

2. Install GIT, skip if it is already installed#

yum install git

3. Start installing Jenkins#

wget -O /etc/yum.repos.d/jenkins.repo http://jenkins-ci.org/redhat/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins

image.png

chkconfig --list | grep jenkins

image.png

The war package of jenkins is stored in the /usr/lib/jenkins directory, and the configuration file path is /etc/sysconfig/jenkins, which stores related configurations: port number, jenkins home directory path, etc.

image.png

service jenkins start

image.png

cat /var/lib/jenkins/secrets/initialAdminPassword   //View password

image.png

Click [Install recommended plug-in]

image.png

image.png

image.png

You can install the ThinBackup plug-in, copy the backup folder to the new server after backup, and import it into the jenkins-ThinBackup of the new server;
Note when backing up:
If the path folder does not exist, it may cause the backup to fail, you need to create it manually, and set 755 and jenkins permissions;
Specific use can refer to:
https://blog.csdn.net/tengdazhang770960436/article/details/62043154

If deployed on a LAN and deployed to a remote server, you also need to install Phing, Publish Over SSH, etc. for remote deployment;
However, it is generally not recommended to deploy locally, which is relatively troublesome. When starting the service through Java web, a fixed IP from the external network is required, and the local area network and dynamic IP cannot be realized;

Open System Management -> System Settings -> gitlab, fill in name, Gitlab host URL, use the newly copied Private token to configure a new Gitlab API token and use it, Test connection;

image.png

0 People like

CentOS

( adsbygoogle = window.adsbygoogle || []).push({});

Recommended Posts

CentOS + Jenkins
CentOS7 build jenkins
CentOS 8 (2)
Jenkins build on centos
Install Jenkins under Centos 7
CentOS 8 (1)
Install Jenkins on centos7
Centos7 installation and configuration of Jenkins
Installation under centos6.9 of jenkins learning
How to install Jenkins on CentOS 8
CentOS + Python3.6+
How to install Jenkins on CentOS 8
1.5 Install Centos7
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos 7.5 python3.6
Jenkins installation and deployment tutorial under CentOS 7
Centos5 installation guide
Centos6 install Python2.7.13
Centos basic commands
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7.0 network configuration
CentOS 7.0 network configuration
CentOS 8 officially released
CentOS 7 deploy OpenLDAP+FreeRadius
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Python - centos6 installation
Centos7 install Python2.7
CentOS6.5 network settings
Centos 7.6 install seleniu
CentOS7 basic configuration
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
centos system management
CentOS install mysql
Docker installation (CentOS7 installation)
Centos6.5 openssh upgrade
Centos build lnmp
Centos7 build python3.8.5+scrapy+gerapy
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
ubuntu install Jenkins
CentOS mirror types
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ