运维-jenkins-自动化构建部署工具
https://www.cnblogs.com/reblue520/p/7130914.html(含有git 私钥读取)
https://blog.csdn.net/shuizhihun07/article/details/80168076
https://blog.csdn.net/tengxing007/article/details/77626628(maven专题)
https://blog.csdn.net/zzy1078689276/article/details/77520441/ (定时构建)
使用yum安装(可以直接部署在tomcat webapps下)
启动
systemctl start jenkins
未测试
sudo systemctl enable jenkins
sudo systemctl restart jenkins(实测可以)
也支持
service jenkins restart /stop /start
端口默认8080
shell脚本测试
rm -rf /web/jenkins-shell-test/*
mv /var/lib/jenkins/workspace/git项目测试/target /web/jenkins-shell-test
cron
每隔3小时
0 */3 * * *
每隔2分钟
H/2 * * * *
chown jenkins jenkins-shell-test/ 设置一下权限
正文到此结束