logo  

运维备忘录

运维备忘录
作者: 陈安廉

摘要:软件开发进阶系列


安装jenkins


2022-08-03 18:06:02

https://blog.csdn.net/u010752831/article/details/122934476

https://blog.csdn.net/hkl_Forever/article/details/123963940


https://blog.csdn.net/qq_38628046/article/details/124911103


wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war-stable/2.332.3/jenkins.war


下载war包直接启动



# jenkins会在构建结束杀掉衍生子进程,导致相关服务启动失败,禁用杀死衍生进程的特性

nohup /usr/local/jdk-11.0.16/bin/java -jar jenkins.war -Dhudson.util.ProcessTree.disable=true --httpPort=9000 >> jenkins.log 2>&1





如遇到git链接不上,可能是使用了低版本的jdk,如java8,更换java11试试。



https://blog.csdn.net/weixin_38556197/article/details/121134641


scp /root/.jenkins/config.xml root@192.168.1.110:/root/.jenkins/config.xml


scp -r /root/.jenkins/users root@192.168.1.110:/root/.jenkins/users


scp -r /root/.jenkins/plugins root@192.168.1.110:/root/.jenkins/plugins


scp -r /root/.jenkins/jobs root@192.168.1.110:/root/.jenkins/jobs


scp -r /root/.jenkins/workspace root@192.168.1.110:/root/.jenkins/workspace




迁移后如找不到maven,看看全局与各个job下的config.xml中maven的配置路径是否正确