We are using TeamCity v4 and NAnt for continuous integration builds on a server in our work area. We would like t开发者_如何学编程o have the build server play an mp3 or wav file when the build fails. Anyone has any ideas around this?
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.
精彩评论