简体   繁体   English

在 Microsoft Teams 中订阅 Azure DevOps 管道时无法按阶段筛选

[英]Not filterable by stage at subscribe Azure DevOps pipeline in Microsoft Teams

I have installed Azure DevOps plug-in in Microsoft Teams.我已经在 Microsoft Teams 中安装了 Azure DevOps 插件。 I want subscribe to a pipeline, so I write Azure pipelines subscriptions on the line.我要订阅一个pipeline,所以写Azure pipelines subscriptions就行了。 Afterwards List of subscribtions appears I choose Add subscription.之后出现订阅列表我选择添加订阅。 Then I choose Release Deployment Completed and when it comes to Stage name (choose filters) I can only see the possibility [Any].然后我选择 Release Deployment Completed,当涉及到阶段名称(选择过滤器)时,我只能看到可能性 [Any]。 Why I don't see all the ones stages I use and I can't choose one when I use them in release pipelines?为什么我看不到我使用的所有阶段,并且在发布管道中使用它们时无法选择一个阶段? 在此处输入图像描述

Maybe I can try subscribe each individual pipeline by its url but this is approximately 60 individual requests.也许我可以尝试通过其 url 订阅每个单独的管道,但这大约是 60 个单独的请求。 So subscribe to a whole project is better option for me.所以订阅整个项目对我来说是更好的选择。

Reasons for Problem You are Facing:您面临的问题的原因:

The possible reasons you can only see the possibility "[Any]" in the stage name filter in Microsoft Teams Azure DevOps Plug-In:可能的原因在Microsoft Teams Azure DevOps Plug-In的阶段名称筛选器中只能看到可能性“[Any]”

  • The plug-in only provides notifications for release deployment completions.该插件仅提供发布部署完成的通知。
  • The stage name filter is specific to a stage.阶段名称过滤器特定于阶段。
  • In this case, it is a general notification for release deployment completion.在这种情况下,它是发布部署完成的一般通知。
  • The filter only allows you to choose a specific stage if the Azure如果 Azure,过滤器只允许您选择特定阶段
    DevOps service hook being subscribed to is specific to a stage.订阅的 DevOps 服务挂钩特定于一个阶段。

Solution:解决方案:

To receive notifications for specific stages within a release pipeline, you may need to create separate subscriptions for each stage or write a custom solution using Azure DevOps APIs.要接收发布管道中特定阶段的通知,您可能需要为每个阶段创建单独的订阅或使用 Azure DevOps API 编写自定义解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM