目的
嵌入式具有运行不稳定,连接困难,通常需要串口,烧写镜像耗时较长的特点
了解jenkins如何针对嵌入式特点,更有效完成镜像部署,任务并行,硬件有效利用。
方法
- jenkins官方对嵌入式领域的介绍
- 其他对于jenkins的看法方法
jenkins官方对嵌入式领域的介绍
https://www.jenkins.io/solutions/embedded/
插件
Working with tools
- 预先安装环境
- EnvInject Plugin allows to setup custom environments at the job level.在agent启动或job启动前,能注入环境变量,更改环境变量等https://plugins.jenkins.io/envinject/
Working with FPGA boards and hardware peripherals
- 并行插件,实现license或硬件的并行
- 超时插件,防止永久堵塞
- 条件重启插件
大规模计算:略
其他对jenkins使用的看法
https://dojofive.com/blog/setting-up-jenkins-for-embedded-the-right-way-or-not-at-all/
- 脚本应该既能在本地运行,也能在ci server运行,即与具体的ci解耦
- 将jenkins pipeline,及脚本用git进行版本管理
- 少依赖插件,版本更新后插件可能不可用
https://www.atlassian.com/continuous-delivery/principles
https://semaphoreci.com/cicd