一、安装环境
Centos7 +JDK1.8 +Jenkins-2.346.3
JDK1.8安装以及网络配置等 自行搜索资料解决。
二、卸载历史安装的Jenkins,直接全部复制粘贴下面的命令
service jenkins stop
yum -y remove jenkins
rpm -e jenkins
rpm -ql jenkins
rm -rf /etc/sysconfig/jenkins.rpmsave
rm -rf /var/cache/jenkins/
rm -rf /etc/init.d/jenkins.rpmsave
find / -iname jenkins | xargs -n 1000 rm -rf
三、下载Jenkins2.346
1、直接在对应的网站中选择自己要想的版本rpm包下载
地址一:Index of jenkins-local/redhat-stable
地址二:Index of /redhat-stable
地址三:Redhat Jenkins Packages
2、直接在Centos系统中,使用wget命令下载即可
创建目录和下载地址(任选其一)
mdkir /opt/jenkins
wget https://repo.huaweicloud.com/jenkins/redhat-stable/jenkins-2.346.3-1.1.noarch.rpm
wget https://mirrors.jenkins.io/redhat-stable/jenkins-2.346.3-1.1.noarch.rpm
wget https://archives.jenkins.io/redhat-stable/jenkins-2.346.3-1.1.noarch.rpm