microsoft/azure-pipelines-extensions

Question: is it possible to set a custom icon in a custom artifact source and if yes - how?

gbaychev opened this issue · 0 comments

Hello everybody,
as the title suggests, I have written an extension, which defines a custom artifact source type. This on itself works fine, but I want to set a custom icon (like these marked in yellow in the screenshot below), so that it is easier to differentiate between artifact sources, when creating a pipeline.

Example of custom icons (I've marked them in yellow):
image

I tried to add the icon property as follows (the last line of the snippet):

"properties":
{
"name": "ArtifactoryCustom",
"displayName": "Custom Artifactory",
"endpointTypeId": "artifactoryService",
"uniqueSourceIdentifier": "{{connection}}:{{definition}}:{{buildNumber}}",
"downloadTaskId": "07fc5c20-6772-11e5-abde-6901d3c00755",
"artifactType": "Package",
"icon" : "images/artifactory.png",
...

But I still get the default icon (the 'Build' one in the screenshot above). The image I'm using (images/artifactory.png) is there, because I use it as an icon for my extension and it is shown correctly in the list of extensions.

Any ideas? Thank you in advance.