简体   繁体   English

Windows Azure和持续集成

[英]Windows Azure and Continuous Integration

We would like to set up continuous integration (CI) environment for developing an Azure web application. 我们希望为开发Azure Web应用程序设置持续集成(CI)环境。 It would be great if: 如果:

  • We could use any popular CI server ( Atlassian Bamboo , for example). 我们可以使用任何流行的CI服务器(例如Atlassian Bamboo )。
  • Deployment to the test environment (exactly the same as production) is performed automatically on each build. 在每个构建上自动执行到测试环境的部署(与生产完全相同)。
  • Deployment to the production environment is performed automatically and triggered manually by selecting some stable build. 通过选择一些稳定的构建,自动执行到生产环境的部署并手动触发。

What are the best practices for implementing such scenarios? 实施此类方案的最佳做法是什么?

you might want to check out the built in support for continuous integration and continuous delivery for Azure that came out recently. 您可能希望查看最近出现的Azure的持续集成和持续交付的内置支持。

For on premise build servers (with or without TFS) there is this guidance: http://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/ 对于内部部署构建服务器(有或没有TFS),有以下指导: http//www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/

For Team Foundation Service Preview (elastic build in the cloud) there is this guidance: http://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/ 对于Team Foundation Service Preview(云中的弹性构建),有以下指导: http//www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-tfs/

For Git and Windows Azure Web Sites there is also guidance sitting next to these links (I'm not allowed yet to post more than two hyperlinks..). 对于Git和Windows Azure网站,这些链接旁边也有指导(我不允许发布两个以上的超链接..)。

Your deployment process, first and foremost, needs to be as similar as possible between environments so that a deployment to test, tests your deployment along with the code itself. 首先,您的部署过程需要在环境之间尽可能相似,以便部署测试,测试部署以及代码本身。 Good continuous delivery tools (my company provides one ) will help with that and tie those phases together nice in a build lifecycle or build pipeline. 良好的连续交付工具(我公司提供的一个 ),将有助于利用,并在构建生命周期配合这些阶段一起漂亮或建造管道。

Depending on who you are, you'll need to think through security and separation of duties when it comes to the prod deployment while leaving self-service open for developers. 根据您的身份,在进行prod部署时,您需要考虑安全性和职责分离,同时为开发人员提供自助服务。

Also think through whether you want to deploy builds to test that build successfully but fail some unit tests. 还要考虑是否要部署构建以成功测试构建但是未通过某些单元测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM