Skip to content

[enhancement]: Can we please have UniversalPackages@0 print the human readable feed name? #21248

@neel-m

Description

@neel-m

Task name

Add feed name (not just GUID) to logging for universalpackages@0

Describe your feature request here

Here is an example of the logging:

Because (reasons) I have MANY feeds and need to make the decision at runtime which feed to use, I can't use template expansion time variables and am using runtime variables for the feed name. This works fine. But universalpackages@0 converts my nice human readable feed name into the guid that uniquely identifies it. This means when I look at the log I have no idea (easily) if it used the right feed or not (or which one it did actually use).

This log statement Publishing package: junk, version: 9 using feed id: 7efbe201-4d41-7c0c-88ae-3ce3c51de433, project: null appears to be coming from here
console.log(tl.loc("Info_Publishing", options.packageName, options.packageVersion, options.feedId, options.projectId));

That appears to be using the feedID I pass in, but I am passing in a human readable string. Interestingly enough, if I pass in a non-existing feed, it will log that name, so it clearly knows what the name is before it converts it to the GUID.

Since displayName of the task uses the name present at template expansion time, I can't use it to show me the nice name, when I determine the feed name at runtime.

Starting: Publish artifacts to none_of_your_business feed
==============================================================================
Task         : Universal packages
Description  : Download or publish Universal Packages
Version      : 0.260.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/universal-packages
==============================================================================
Downloading: https://0psvsblobprodwus2145.vsblob.vsassets.io/artifacttool/artifacttool-linux-x64-Release_0.2.407.zip?sv=2019-07-07&sr=b&sig=-REDACTED-&skoid=8f4a31b6-ccf8-4d83-8ff6-444a0146cdb6&sktid=33e01921-4d64-4f8c-a055-5bdaffd5e33d&skt=2025-08-22T16%3A17%3A37Z&ske=2025-08-24T17%3A17%3A37Z&sks=b&skv=2019-07-07&se=2025-08-22T19%3A45%3A01Z&sp=r&P1=1755891601&P2=11&P3=2&P4=MaO3x99nploVy%2byIw3aPE98JMvjDLNXnrtTmMT%2byNxU%3d
Caching tool: artifacttool 0.2.407 x64
Publishing package: junk, version: 9 using feed id: 7efbe201-4d41-7c0c-88ae-3ce3c51de433, project: null
/mnt/vss/_work/_tool/artifacttool/0.2.407/x64/artifacttool universal publish --feed 7efbe201-4d41-7c0c-88ae-3ce3c51de433 --service https://dev.azure.com/ampx/ --package-name junk --package-version 9 --path /mnt/vss/_work/1/drop --patvar UNIVERSAL_PUBLISH_PAT --verbosity None --description undefined

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions