问题
I try to add new custom tab to summary page for build result, but which will be added only for builds with my custom build Task. For example, Task "publish artifacts", only if this task was added, the tab "artifacts" added in summary page. I want the same behavior for my task and tab.
For now, I've just added in vss-extension.json, in "contributions"
{
"id": "build-info-tab",
"type": "ms.vss-build-web.build-results-tab",
"description": "A tab contributing to build results view",
"targets": [
"ms.vss-build-web.build-results-view"
],
"properties": {
"name": "My Build info",
"uri": "infoTab.html",
}
}
But this tab permanently displayed for any builds and that is my problem.
Actually I have the same issue with summary section also.
来源:https://stackoverflow.com/questions/39729392/vsts-build-summary-tab-with-visible-condition-or-task-dependency