Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

supportsTasks contribution property not working #110

Open
jsalado opened this issue Oct 8, 2018 · 3 comments
Open

supportsTasks contribution property not working #110

jsalado opened this issue Oct 8, 2018 · 3 comments

Comments

@jsalado
Copy link

jsalado commented Oct 8, 2018

Hello,

I'm improving an extension that currently only provides additional build tasks to include web contributions to display results of my tasks in the build summary and add a couple of contributions that will display specific tabs depending on the task that was defined in the build task.

I'm following the build-results-enhancer sample, and it's been very helpful so far. I already have everything implemented and working. The only thing is that I always get all the contributions displayed. I'm setting the supportsTasks property in the contribution that I want to display only if the correspondent task in in the build definition, but it is not working.

I have tried defining the task dependent contribution like in the example:
{ "id": "build-kiuwan-audit-results-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view and depends on Kiuwan delivery analysis task", "targets": [ "ms.vss-build-web.build-results-view" ], "properties": { "name": "Kiuwan Audit", "uri": "kiuwanAuditTab.html", "supportsTasks": ["4e6e25e3-c0b5-4986-8714-5c751945c15f"] } },
and tried using "id" within the supportsTasks property because it is hinted in the sample readme.md. Like this:
{ "id": "build-kiuwan-audit-results-tab", "type": "ms.vss-build-web.build-results-tab", "description": "A tab contributing to build results view and depends on Kiuwan delivery analysis task", "targets": [ "ms.vss-build-web.build-results-view" ], "properties": { "name": "Kiuwan Audit", "uri": "kiuwanAuditTab.html", "supportsTasks": { "id": ["4e6e25e3-c0b5-4986-8714-5c751945c15f"] } } },
None of this work. I always get the "Kiuwan Audit" contribution displayed independently if I use the task with defined task id or not.

Any help is appreciated. Best,
J.

@afeblot
Copy link

afeblot commented Feb 8, 2019

Funny. As soon as I add this property, with the 2 syntax you tried, my tab does not appear anymore, even for jobs which use the referred task :-(

@Xoib
Copy link

Xoib commented Feb 25, 2019

I tried to fix this issue and unfortunately, after trying every combination possible (new guid, lower/upper case...) linked to the TaskId, I came to the conclusion that "supportsTasks" property of a specific contribution doesn't work as intended.

@satell
Copy link

satell commented Mar 15, 2019

mine is working fine for vnext builds but it shows up in all xaml builds the custom tab . why is no any enough documentation ,support or update for this topic from Microsoft for long time?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants