我一直在尝试找到有关如何让 Team Foundation Server 打开熔岩灯或交通灯来指示构建状态的指南。我想设置一些在整个办公室都可见的东西,这样就会有一些同行压力来鼓励开发人员不要破坏构建;但我也希望它变得有趣。
有很多使用 X.10 设备的 CruiseControl 示例,这似乎是一个不错的方法。但我找不到 TFS 的类似内容。我确信一定有人在某个地方这样做......?
使用 X.10 有一个问题,因为它需要串行端口 - 但我们的 TFS 在某个数据中心中完全虚拟化。也许有某种方法可以通过电子邮件触发红绿灯?
任何建议表示赞赏。谢谢。
I've been trying to find a guide on how to get Team Foundation Server to turn on a lava lamp or traffic light to indicate the status of the build. I want to set up something that's visible right across the office so there's some peer pressure to encourage developers not to break the build; but I also want it to be fun.
There's a lot of examples for CruiseControl that use X.10 devices which seems like a good way to go. But I can't find anything similar for TFS. I'm sure that somebody must be doing this somewhere...?
Using X.10 has one problem in that it requires a serial port - but our TFS is completely virtualised in a data centre somewhere. Maybe there is some way to trigger the traffic light via an email?
Any advice appreciated. Thanks.
发布评论
评论(3)
TFS 有一个很好的 API 来获取最近构建的状态。您可以使用 API 并设计自己的有趣系统。
另请查看:
The TFS have got a nice API for getting the status of recent builds. You can use the API and design your own fun system.
Also take a look at:
在某个时候,我偶然发现了 这个 youtube 视频,其中 Martin Woodward 介绍了Brian,一只时髦的 TFS 构建兔子。可能值得检查一下。
也可能值得检查这篇 SO帖子。
At some point I had stumbled upon this youtube-video, where Martin Woodward presents Brian, the funky TFS-build bunny. Might be worth checking.
It might also be worth checking this SO post.
TFS API 很糟糕,你自己做起来很痛苦。您可以从 Google 代码上的这个开源项目开始:http://code.google。 com/p/siren-of-shame/。该项目旨在与几个不同的构建服务器配合使用,但一切都已损坏,因此您可以从 TFS 2010 项目 (TfsServices.csproj) 开始。或者,如果您不想自己完成所有工作,该项目旨在与他们销售的 USB Siren 配合使用(请参阅 http ://www.sirenofshame.com/)。
The TFS API's are terrible they're a pain to do yourself. You could start with this open source project on Google Code: http://code.google.com/p/siren-of-shame/. That project is designed to work with a couple of different build servers, but everything is broken out, so you could start with the TFS 2010 project (TfsServices.csproj). Or if you don't want to do it all yourself that project is designed to work with a USB Siren that they sell (see http://www.sirenofshame.com/).