如何将自定义选项卡添加到具有扩展名的新Azure DevOps版本中心中?

时间:2018-11-03 02:02:44

标签: azure-devops azure-pipelines azure-devops-extensions

Azure DevOps UI正在不断发展,我正在尝试在查看特定版本的同时向新的 Release Pipeline 视图添加自定义选项卡:

New UI

我可以在旧版UI中使用ms.vss-releaseManagement-web.release-summary-tab 贡献,并定位到ms.vss-releaseManagement-web.release-details-view

{
  "id": "my-release-tab",
  "type": "ms.vss-releaseManagement-web.release-summary-tab",
  "description": "My release tab",
  "targets": ["ms.vss-releaseManagement-web.release-details-view"],
  "properties": {
    "name": "My Custom Tab",
    "uri": "tab.html"
  },
  "includes": ["ms.vss-releaseManagement-web.release-service-data-external"]
}

Old UI with custom tab

新的缴费类型是什么?目标改变了吗?

1 个答案:

答案 0 :(得分:0)

Microsoft Docs中,您似乎需要更改贡献类型并将其定位为此:

{ 
   "id": "rm-details-view-sample", 
   "type": "ms.vss-releaseManagement-web.release-summary-section", 
   "targets": [ "ms.vss-releaseManagement-web.release-details-summary-tab" ], 
   "properties": { 
      "name": "Tab name", 
      "uri": "index.html" 
   } 
}