TFS 2010 电子邮件警报 - 按多个状态代码过滤?

发布于 2024-09-13 08:08:28 字数 486 浏览 4 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(2

昇り龍 2024-09-20 08:08:28

好吧,我终于找到了解决方案。

在警报定义选项卡上,选择两行或更多行,表格上方的按钮将亮起。其中之一是“对选定的子句进行分组”,并将使用我所追求的结果创建一个子子句。

替代文字

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.

alt text

池木 2024-09-20 08:08:28

(这是基于 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.

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