构建失败后构建成功的 TFS 警报
在 TFS 中构建失败后是否可以收到构建成功的电子邮件?
当构建失败时我可以收到电子邮件(我确实这样做了)。当构建成功时我可以收到电子邮件。
但我需要知道构建不再失败。如果我收到一封表明构建失败的电子邮件,我不想签入,直到它再次工作。最好通过电子邮件获取该信息。
Is there away to get an email of a successful build after a failed build in TFS?
I can get emails when the build fails (which I do). And I can get emails when the build succeeds.
But what I need is to know that the build is no longer failing. If I get an email that the build failed, I don't want to check in until it is working again. It would be nice to get that info by email.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不相信使用警报资源管理器可以实现这一点。但是您可以创建一个订阅构建通知的自定义 Web 服务,然后自己实现此逻辑。
有关使用您自己的 Web 服务订阅 TFS 事件的详细信息,请参阅本文:http://blog.hinshelwood.com/team-foundation-server-2010-event-handling-with-subscribers/
I don't believe this will be possible using the Alerts Explorer. But you could create a custom web service that subscribed to the Build Notifications then implement this logic yourself.
See this article for details on subscribing to TFS events with your own web service: http://blog.hinshelwood.com/team-foundation-server-2010-event-handling-with-subscribers/
我目前有 TFS 设置电子邮件警报,用于失败和成功构建。
我认为成功构建电子邮件只是一种噪音,只有在上次构建失败时我才想收到它们。
我的想法是取消任何成功构建的 TFS 警报电子邮件,但在失败构建后启用它以获取成功
我已使用 TFS 插件成功连接了代码,以查明上次构建是否失败以及当前构建是否成功。
我只是不知道如何发送相同的 TFS 构建电子邮件。你知道该怎么做吗?
I currently have the TFS setup email alerts for failure and success builds.
I think success build emails are just a noise and I want to get them only if the last build was a failure.
My idea was to cancel the TFS alert email for any success build, but enable it for success after failure builds
I have successfully hooked up the code to find out if the last build failed and the current build succeeded using a TFS plugin.
I just don't know how to send the same TFS build email. Do you know how to do this ?