[[email protected] ~]# rpm -ql jenkins
/etc/init.d/jenkins
/etc/logrotate.d/jenkins
/etc/sysconfig/jenkins
/usr/lib/jenkins
/usr/lib/jenkins/jenkins.war
/usr/sbin/rcjenkins
/var/cache/jenkins
/var/lib/jenkins
/var/log/jenkins
[[email protected] ~]#
直接替换war包就好
war包下载地址
https://mirrors.tuna.tsinghua.edu.cn/jenkins/war/
停止然后重启 就好了 原来的war包备份
备份jenkins
最好用rsync 因为jenkins 目录牵扯到权限的问题
scp -r /var/lib/jenkins/* /home/backup/jenkins/
rsync -raz --delete --progress arb/jenkins/ /data/backup/jenkins/
时间: 2024-10-12 17:08:34