本篇文章目标
CI/CD
是什么?CI
和 CD
的实现CI
的全称是 Continuous Integration
也就是持续集成CD
其实对应两个概念:
CD
-持续交付(Continuous Delivery
)CD
-持续部署(Continuous Deployment
)“In software engineering,continuous integration (CI) is the practive of merging all developers' working copies to a shared mainline several times a day”
开发人员提交新代码之后,立即进行构建、(单元)测试。根据测试结果骂我们可以确定新代码和原有代码能否正确地集成在一起。
CI就是高频地、自动化地将个人开发的代码集成到开发主线中
“Continuous delivery(CD) is a software engineering approach in which teams produce software in short cycles,ensuring that the software can be reliably released at any time and, when releasing the sofeware,doing so manually”
在持续继承的基础上,将集成后的代码部署到更贴近真实运行环境的类生产环境
中
QA
人员类生产环境
中测试“Continuous Deployment(CD) is softwrae engineering approach in which software functionalities are delivered frequently through automated deployments”
在持续交付的基础上,能够自动化地讲软件部署在真实生产环境
实际上持续交付和持续部署这两个概念不用分的特别清楚,在实践中,我们往往认为持续交付和持续部署这两者是一体的
CI重在个人对团队的交付,所以他关注的点有两个:
持续交付和持续部署的过程是对QA和最终用户的交付的过程
本文作者:叶继伟
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!