自动构建失败时播放声音
我们正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装可让您将 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.