【问题标题】:Visual Studio Team Services - Build Alerts and Alert Filters Group Selected Clauses not WorkingVisual Studio Team Services - 生成警报和警报过滤器组选定的子句不起作用
【发布时间】:2016-12-15 12:37:11
【问题描述】:

我们正在设置 Build Alerts 以与 Visual Studio Team Services 2015 一起使用,但是设置 Alert Filters - Group Selected Clauses 尚不清楚从界面 - 这就是我想要实现的。

((definition1 || defintion2) && (status1 || status2 || status3 || statusTest1 || statusTest2))

与此相关的唯一文档I could find 表明当前的分组应该可以工作,但是不会生成电子邮件,如果我删除了分组,则会发送电子邮件但评估表达式的方式尚不清楚。

更新评论

我认为默认情况下包含大括号。

(definitionName OR definitionName) AND (status OR testStatus)

--
|   definitonName
|   OR definitionName
--
--
|   AND status
|   OR testStatus
--

【问题讨论】:

  • 您不需要父“And”子句来指定两个分组都应该适用吗? (这里只是推测,不确定)
  • 另外,我会将您的第二个分组简化为Status<>Succeeded OR TestStatus<>Succeeded
  • @oldbam Ive 用您的建议和问题更新查询。谢谢

标签: .net visual-studio tfs visual-studio-2015 azure-devops


【解决方案1】:

问题与 Group Selected Clause 无关,但在使用 Field - DefinitionName 时,= 运算符不起作用. 改用Contains 解决了这个问题。

(definitionName OR definitionName) AND (status OR testStatus)

--
|   definitonName
|   OR definitionName
--
--
|   AND status
|   OR testStatus
--

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-18
    相关资源
    最近更新 更多