一、部署jenkins
1、设置jenkins家目录环境
[root@VM_8_24_centos ~]# yum -y install java
[root@VM_8_24_centos builds]# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
2、安装jenkins
[root@VM_8_24_centos ~]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
[root@VM_8_24_centos ~]# rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
[root@VM_8_24_centos ~]# yum -y install jenkins
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.150.2-1.1 will be installed
--> Finished Dependency Resolution
Installed:
jenkins.noarch 0:2.150.2-1.1