自动构建失败时播放声音

发布于 2024-09-17 19:15:18 字数 96 浏览 1 评论 0原文

我们正在使用 TeamCity v4 和 NAnt 在我们工作区域的服务器上进行持续集成构建。我们希望构建服务器在构建失败时播放 mp3 或 wav 文件。有人对此有什么想法吗?

We are using TeamCity v4 and NAnt for continuous integration builds on a server in our work area. We would like to have the build server play an mp3 or wav file when the build fails. Anyone has any ideas around this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盗琴音 2024-09-24 19:15:18

安装可让您将 CCTray 与 TeamCity 结合使用的插件 ,然后安装并配置 CCTray(如果您希望在构建服务器上播放声音,则在构建服务器本身上)并启用声音通知。我找到了关于如何执行此操作的博客文章

或者,您可以安装您的构建服务器到熔岩灯来显示您的构建失败状态:D

编辑:我四处搜索,似乎没有简单的方法可以使用现有的 TeamCity 构建失败挂钩来执行此操作。您可以编写一个插件来做到这一点,但如果失败的话,上面基于 CCTray 的选项似乎是最好和最干净的。

Install the plugin that lets you use CCTray with TeamCity, then install and configure CCTray (on the build server itself if that's where you want the sound to play) and enable sound notifications. I found a blog entry on how to do this.

Alternately, you could rig your build server up to a lava lamp to display your build failure status :D

Edit: I've searched around and it seems like there's no simple way to do this using existing TeamCity build failue hooks. You could write a plugin to do it, but failing that it seems the above CCTray-based option is the best and cleanest.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文