TFS 2010 电子邮件警报 - 按多个状态代码过滤?
我正在使用 TFS Power Tools 中的警报资源管理器在 TFS 2010 中设置电子邮件警报。
我希望在构建失败或部分成功时收到一封电子邮件。过滤器似乎太基础了,无法实现这一点。
我创建了过滤器,如下所示
“TeamProject”=“我的项目”AND“StatusCode”=“失败”或“StatusCode”=“部分成功”
但显然,每当任何项目的构建部分成功时,这都会向我发送一封电子邮件。我真正想要的过滤器是
“TeamProject”=“我的项目”AND(“StatusCode”=“失败”OR“StatusCode”=“部分成功”)
有没有办法实现这一点?我可以以这样的方式输入值,使其读取为 IN('this' 或 'that')吗?
如果我能帮忙的话,我真的不想为我感兴趣的每个状态创建单独的电子邮件规则。
I am setting up my email alerts in TFS 2010 using the Alerts Explorer from the TFS Power Tools.
I want to receive an email when a build either fails or partially succeeds. The filter seems to be too basic to achieve this.
I have created the filter as follows
"TeamProject" = 'My Project' AND "StatusCode" = 'Failed' OR "StatusCode" = 'PartiallySucceeded'
but obviously this sends me an email whenever any project's build partially succeeds. The filter I actually want is
"TeamProject" = 'My Project' AND ("StatusCode" = 'Failed' OR "StatusCode" = 'PartiallySucceeded')
Is there a way to achieve this? Can I input the value in such a way so it reads IN ('this' or 'that')?
I don't really want to have to create separate email rules for each status I'm interested in if I can help it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,我终于找到了解决方案。
在警报定义选项卡上,选择两行或更多行,表格上方的按钮将亮起。其中之一是“对选定的子句进行分组”,并将使用我所追求的结果创建一个子子句。
Ok, I finally found the solution.
On the alert definition tab select two or more rows and the buttons just above the table light up. One of these is "Group selected clauses" and will create a sub clause with the results I was after.
(这是基于 TFS 2008 Power Toys 中的 VS 2008 编辑器)
在“警报定义”选项卡中,我认为您不能,但“过滤器表达式”选项卡提供了更多自由,支持 AND 和 OR,以及括号。
(This is based on the VS 2008 editor from the TFS 2008 Power Toys)
In the Alert Definition tab I don't think you can, but the Filter Expression tab gives more freedom, with AND and OR, as well as parentheses being supported.