Continuous_Integration_and_Deployment.ppt

上传人:小小飞 文档编号:5016589 上传时间:2020-01-28 格式:PPT 页数:39 大小:3.07MB
返回 下载 相关 举报
Continuous_Integration_and_Deployment.ppt_第1页
第1页 / 共39页
Continuous_Integration_and_Deployment.ppt_第2页
第2页 / 共39页
Continuous_Integration_and_Deployment.ppt_第3页
第3页 / 共39页
Continuous_Integration_and_Deployment.ppt_第4页
第4页 / 共39页
Continuous_Integration_and_Deployment.ppt_第5页
第5页 / 共39页
点击查看更多>>
资源描述

《Continuous_Integration_and_Deployment.ppt》由会员分享,可在线阅读,更多相关《Continuous_Integration_and_Deployment.ppt(39页珍藏版)》请在三一文库上搜索。

1、1 AVANTGARD DRIVE EFFICIENCIES & PRODUCTIVITY UNLOCK HIDDEN CASH GAIN GLOBAL VISIBILITY OF CASH & RISK FOSTER CONNECTIVITY CONTINUOUS INTEGRATION AND DELIVERY Gareth Mercer Director of Software Development 2 CONTINUOUS INTEGRATION AND DELIVERY ProcessStoryProduction Code Change What happens between

2、a code change and production? Integration and Delivery 3 CONTINUOUS INTEGRATION AND DELIVERY And the Continuous? Every code change leads to a potential release. Its a continual process. 4 CONTINUOUS INTEGRATION AND DELIVERY 5 Principles 6 CONTINUOUS INTEGRATION AND DELIVERY Principle #1 Create a rep

3、eatable, reliable process for releasing software. 7 CONTINUOUS INTEGRATION AND DELIVERY Principle #2 Automate almost everything. 8 CONTINUOUS INTEGRATION AND DELIVERY Principle #3 Keep everything in version control. 9 CONTINUOUS INTEGRATION AND DELIVERY Principle #4 If it hurts, do it more frequentl

4、y and bring the pain forward. 10 CONTINUOUS INTEGRATION AND DELIVERY Principle #5 Build Quality In. 11 CONTINUOUS INTEGRATION AND DELIVERY Principle #6 Done means released. 12 CONTINUOUS INTEGRATION AND DELIVERY Principle #7 Everybody is responsible for the delivery process. 13 CONTINUOUS INTEGRATIO

5、N AND DELIVERY Principle #8 Continuous Improvement. 14 Continuous Integration and Delivery 15 CONTINUOUS INTEGRATION AND DELIVERY Continuous Integration and Delivery What might the process look like? 16 CONTINUOUS INTEGRATION AND DELIVERY Requirements Version Control. An Automated Build. Agreement o

6、f the Team. 17 CONTINUOUS INTEGRATION AND DELIVERY Check In Regularly Check in to trunk. Frequent small changes. 18 CONTINUOUS INTEGRATION AND DELIVERY Check In Process The pre check in process. Meaningful messages. 19 CONTINUOUS INTEGRATION AND DELIVERY Build Automated process. 20 CONTINUOUS INTEGR

7、ATION AND DELIVERY Testing Commit tests (unit and component). Acceptance tests. Can include integration and performance. Combined should give a high level of confidence in the application. 21 CONTINUOUS INTEGRATION AND DELIVERY Testing Run automatically. Run quickly. Commit and acceptance tests. Gro

8、uped and layered. 22 CONTINUOUS INTEGRATION AND DELIVERY Short Build and Test Process Compile and commit tests 5 mins. Deploy and acceptance tests 30 mins. 23 CONTINUOUS INTEGRATION AND DELIVERY Essential Practices Dont check in on a broken build. Test locally first. Wait for commit tests before nex

9、t task. Never go home on a broken build. Be ready to revert. 24 CONTINUOUS INTEGRATION AND DELIVERY Pass v Fail Dont comment out failing tests! You broke it you fix it! Even if it appears unrelated to your check in. 25 CONTINUOUS INTEGRATION AND DELIVERY Upgrading Data Automated. Should be able to u

10、ndo changes. 26 CONTINUOUS INTEGRATION AND DELIVERY System Jenkins. Communication. Wallboards. 27 CONTINUOUS INTEGRATION AND DELIVERY Environment Keep them all the same test to production. Standard development environment. 28 CONTINUOUS INTEGRATION AND DELIVERY Dependencies Central store of external

11、 libraries. Manage our own NXG components. 29 CONTINUOUS INTEGRATION AND DELIVERY Configuration Application, software and environment. Do it at deployment time. Automate it. Use SVN. 30 CONTINUOUS INTEGRATION AND DELIVERY Deploy to Production Same process as used in test. Frequently tested. Controll

12、ed. Should be able to undo changes. 31 CONTINUOUS INTEGRATION AND DELIVERY p111 32 Best Practices 33 CONTINUOUS INTEGRATION AND DELIVERY Practices #1 Only build the binaries once. 34 CONTINUOUS INTEGRATION AND DELIVERY Practices #2 Deploy the same way to every environment. 35 CONTINUOUS INTEGRATION

13、AND DELIVERY Practices #3 Smoke Test the deployment. 36 CONTINUOUS INTEGRATION AND DELIVERY Practices #4 Deploy into a copy of production. 37 CONTINUOUS INTEGRATION AND DELIVERY Practices #5 Each change should move all the way along the pipeline. 38 CONTINUOUS INTEGRATION AND DELIVERY Practices #6 If anything fails stop. 39 Next Steps

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 研究报告 > 商业贸易


经营许可证编号:宁ICP备18001539号-1