如何在CI中将特定工作项部署到生产中。 [英] How to deploy specific work-items to production in CI.

查看:61
本文介绍了如何在CI中将特定工作项部署到生产中。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CI的新手(继续整合),目前我们正在使用TFS 2015 Update 3 for R& D.

I am new to CI (continues Integration) and currently we are using TFS 2015 Update 3 for R&D.

我们有3个环境叫做Dev,Test和Stage我们移动的任何项目都是生产版本的最终版本。作为CI的一部分,我们启动了POC,我们能够在代码签入时触发自动构建和发布到Dev和Test环境。
每个级别都有自己的审批流程,我们总是在每次办理登机手续时附上工作项目。

We have 3 environments called Dev, Test and Stage and whatever items we move stage are final for production release. As part of CI we started a POC and we were able to trigger automatic builds and releases to Dev and Test environment upon code check-in. And each level has its own approval process, we always attach a work-item to each check-in we do.

但有时我们可能会遇到需要的情况仅将特定工作项(在我们的示例中为feature / ticket)从Test移动到阶段。我们无法做到这一点,如果测试经理批准了构建,TFS会将所有已签入的代码移至测试阶段。 

But some times we might have case where we need to move only specific work-items (in our case features/tickets) from Test to stage. We are not able to do this and TFS is moving all the checked in code to stage from test if test manager approved the build. 

我真的不确定是否可以实现使用TFS版本管理工具或任何其他可用于处理此类案例的工具。

I am really not sure whether it can be fulfilled using TFS Release Management tool or any other tool available to handle this kind of cases.

如果我的方法错误,请纠正我。 

Please correct me if I am going in a wrong approach. 

谢谢,b
Vasu

Thanks,
Vasu

推荐答案

嗨Vasu Ravuri,

Hi Vasu Ravuri,

感谢您在此发帖。

根据您的描述我的理解你有3个环境Dev,test和Stage,你使用一个版本定义将发布部署到这三个环境,并将CI构建定义设置为发布定义中的工件源,
如果我的理解不正确,请纠正我。

As my understanding according to your description you have 3 environments Dev, test and Stage, you deployed the release to these three environments with one release definition and set the CI build definition as the artifacts source in release definition, please correct me if my understanding is incorrect.

工作项与变更集相关联,然后在构建后与构建关联,然后与发布关联。因此,如果您对所有三种环境使用相同的构建定义作为工件源,则相关的工作项将为
也相同。

The work items are associated with the changesets, then associate with build after building, then associate with release. So if you use the same build definition as the artifacts source for all three environments, the associated work items will also be the same.

但是你说"我们只需要将特定的工作项目(在我们的案例中功能/票证)从测试移动到阶段",这让我感到困惑,你是如何用CI或CD(从测试环境到舞台)那样做的?您似乎为此处的每个环境单独创建CI构建定义
,如果是,则可以指定存储库映射路径(要构建的功能范围,您可以在此处指定特定工作项相关功能范围)构建定义。

无论如何,如果有任何误解,请自由纠正我并分享您的详细信息。

祝你好运


这篇关于如何在CI中将特定工作项部署到生产中。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆