简体   繁体   English

我如何获得Team City构建以显示在TFS的构建浏览器中

[英]How can i get Team City builds to show up in TFS's build explorer

So here's the setup we have right now 所以这是我们现在的设置

1) We use TFS2013 for our code repository 1)我们使用TFS2013作为代码存储库

2) We use TeamCity to do our builds 2)我们使用TeamCity进行构建

3) we have our tests created in CodedUI 3)我们在CodedUI中创建了测试

From what I've read online is that for the CodedUI tests to run automatically, they need a build to reference. 从我在线阅读的内容来看,要使CodedUI测试自动运行,它们需要构建以供参考。 However, since we are using Team City to do the builds, our Build Explorer in TFS is empty. 但是,由于我们使用Team City进行构建,因此TFS中的Build Explorer为空。 Switching off of Team City for builds is a no, so I'm trying to find a way to have the builds appear in the Build Explorer so I can have the automated tests run via MTM. 为构建而关闭Team City是不行的,所以我试图找到一种方法来使构建出现在Build Explorer中,以便可以通过MTM运行自动​​化测试。

TL;DR: I need to get the Team City builds to appear in the TFS Build Explorer. TL; DR:我需要获得Team City的构建才能显示在TFS Build Explorer中。

I saw this question, but it was for 2010, so I'm hoping it's changed since How do I make a TeamCity build appear in the TFS Build Explorer? 我看到了这个问题,但这是2010年的问题,所以我希望它已经更改,因为我如何使TeamCity构建出现在TFS Build Explorer中?

It can be done using the API. 可以使用API​​来完成。 You could use the following blog post as a starting point to create an app that records in TFS the results from your TeamCity build. 您可以使用以下博客文章作为起点来创建一个应用程序,该应用程序在TFS中记录TeamCity构建的结果。 Then you could run your app as part of your TeamCity build. 然后,您可以在TeamCity构建中运行您的应用程序。

http://blogs.msdn.com/b/jpricket/archive/2010/02/23/creating-fake-builds-in-tfs-build-2010.aspx http://blogs.msdn.com/b/jpricket/archive/2010/02/23/creating-fake-builds-in-tfs-build-2010.aspx

Update: There are however downsides. 更新:但是有缺点。 Some capabilities of ALM are only available if the build is done in TFS. 仅当在TFS中完成构建时,ALM的某些功能才可用。 You loose Test Impact Analysis, relationships between builds and Work Items, identification of Verifiable Bug fixes, roll up for release management of release contents. 您将松散“测试影响分析”,内部版本与工作项目之间的关系,确定可验证的错误修复程序,汇总发布内容的发布管理。

TF Build is more than just orchestrating a compilation, it is the glue that knits your ALM strategy together and you will not be able to amortize the realm value in TFS without builds in TF Build or a whole lot of custom work. TF Build不仅仅是编排一个编译,它是将您的ALM策略结合在一起的粘合剂,如果没有TF Build的构建或大量的自定义工作,您将无法在TFS中摊销领域价值。

Sorry, it's not possible. 抱歉,不可能。 Team Explorer is designed to show you Team Builds. Team Explorer旨在向您展示团队建设。

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

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