如何动态设置部署审批人?

How to dynamically set deployment approvers?

  1. 我可以为部署环境动态设置批准者吗?
  2. 我可以为所有者检查构建管道中的提交吗?

构建中的某些更改需要手动测试。我们在更改列表的描述中有一些文本,标记是否应在特定部署环境中手动测试提交。我想将 post-approvers 设置为负责其更改的个人。

Can I dynamically set approvers for a deployment environment?

对于此问题,您可以通过 Definitions - Update rest api.

设置审批人

您可以在“postDeployApprovals”参数中添加审批人。例如:

"postDeployApprovals": {
  "approvals": [
    {
      "rank": 1,
      "isAutomated": true,
      "isNotificationOn": false,
      "approver": {
        "id": "aeb95c63-4fac-4948-84ce-711b0a9dda97",
        "displayName": "xxx",
        "uniqueName": "xxx@outlook.com",
        "url": "https://vssps.dev.azure.com/xxx/_apis/Identities/aeb95c63-4fac-4948-84ce-711b0a9dda97",
        "imageUrl": "https://dev.azure.com/xxx/_api/_common/identityImage?id=aeb95c63-4fac-4948-84ce-711b0a9dda97"
      },
        "id": 0
      }
  ]
}, 

Can I check the commits in the build pipeline for owners?

您可以在构建摘要页面上检查提交: