参考:https://pkg.jenkins.io/redhat-stable/
设置yum源
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
安装java jdk
yum install java
安装
yum install jenkins
启动
systemctl start jenkins
访问
配置文件
配置文件:/etc/sysconfig/jenkins
安装包目录: /usr/lib/jenkins/
默认的JENKINS_HOME : /var/lib/jenkins/
日志目录: /var/log/jenkins/jenkins.log
其它
jenkins 自动化部署软件
参考:https://www.jianshu.com/p/14e356cf8bb4
jenkins 发布代码处理
http://192.168.1.155:8503/gogs-webhook/?job=dev-laravel
http://192.168.1.155:3000/zhouqian/laravel_study.git
jenkins + gogos 自动化构建平台
gogs->配置webhooks
参考:https://www.jianshu.com/p/14e356cf8bb4
https://stackoverflow.com/questions/53130400/pass-jenkins-workspace-changes-to-dir-in-var-www
cp -a /path/from /path/to
cp -a /pathToJenkinsWorksapcefolder /var/www
You just need to add new execute shell in jenkins to copy from Jenkins workspace to folder you want