1.部署
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
2.vi /etc/sysconfig/jenkins
修改端口号为10080
3./var/lib/jenkins/hudson.model.UpdateCenter.xml
4.创建管理员用户之后,重新启动jenkins
service jenkins restart
5.使用-pipeline
6.jenkins+svn
https://www.cnblogs.com/helenMemery/p/6646978.html
7.修改jenkins执行权限
8.远程发布
https://www.cnblogs.com/Dev0ps/p/9045762.html
9.监控文件夹数据变化
10.jenkins-docker打包
http://blog.51cto.com/lizhenliang/2159817
删除镜像
11.docker run指定 springboot 参数
https://segmentfault.com/a/1190000011367595
查看docker实时日志
docker logs --tail="10" mytest
12.jenkins+nodejs+gulp
13.jenkins 高级函数
14.ssh publish
sourcefile指的是workspace路径下的文件
文件夹: files/**
文件: files/file或files/*
15.nginx镜像
keepalived的docker镜像
https://imkira.com/a17.html
http://blog.51cto.com/433266/2299158(yum包安装)
yum install -y libssl-dev openssl libpopt-dev
yum install -y keepalived
cp /usr/share/doc/keepalived-1.3.5/samples/keepalived.conf.sample /etc/keepalived/keepalived.conf
16.生产环境、测试环境 用户权限分配设置
https://www.jianshu.com/p/edace37a0f58
环境变量
https://www.cnblogs.com/junneyang/p/5239480.html
https://issues.jenkins-ci.org/browse/JENKINS-38483( properties file bug)
https://www.luochunhui.com/(参考)
https://www.jianshu.com/p/7a852d58d9a9 (when条件语句)
添加系统环境变量