Jenkins 介绍
- 例行介绍
- pipeline的设计理念
- 我司的最佳实践
- 实际案例分析
The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
为什么选择Jenkins
- 社区活跃
- 插件丰富
- …
我们用Jenkins来做什么
- build
- deploy
- crontab
- tools
流水线设计原则(PIPELINE)
- 一次构建,多次使用
- 与业务逻辑松耦合
- 并行化原则
- 快速反馈优先
- 重要反馈优先
|
|
最佳实践
- 权限
- 架构
- parameters
- DSL && 共享库
- 其他
权限
- role-based strategy
- Folder Authorization Strategy
权限规则
|
|

架构
- node(master/slave)
|
|
Parameters
- choice
- active choice
- file
- text
- str



DSL && 共享库
|
|
Groovy
|
|
|
|

共享库
|
|
重试机制&&邮件
Jenkins retry
|
|
Ansible retry
|
|
|
|