azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

[Bug] "az pipelines runs artifact download" fail for containers that need to be downloaded as a zip file.

Open geverghe opened this issue 5 years ago • 4 comments
trafficstars

Extension name (the extension in question) az pipelines runs artifact download

Description of issue (in as much detail as possible) I need to be able to download the "containers" from the build run artifacts as a zip file (the same as I can from the web UI).

However the above command fails with error "Artifact with name 'Android' was found, but is of type 'Container'". I've tried mapping into the container to download an individual file, but that also fail with a can't find file error. I have also tried adding on "Android&$format=zip" that the rest api uses in it's download URI, but this also fails.

I've also posted this issue to Stock Overflow.

https://stackoverflow.com/questions/60942336/az-pipelines-runs-artifact-download-fails-with-error-artifact-was-found-but

geverghe avatar Apr 02 '20 15:04 geverghe

From az cli extension repo - issue reference - https://github.com/Azure/azure-cli-extensions/issues/1466

geverghe avatar Apr 02 '20 15:04 geverghe

@BrianMouncer - this would be the repo to raise all future azure-devops-cli-extension issues. I have closed your issue on azure-cli-extensions repo and you can track progress here.

geverghe avatar Apr 02 '20 15:04 geverghe

@geverghe @samuelkoppes @gauravsaralMs Any news on this issue? It's been more than 2 years and half since first opened...

emibcn avatar Jan 03 '23 12:01 emibcn

Experienced this today, still an issue.

This stack overflow post recommended switching upload tasks, which worked! https://stackoverflow.com/a/60962886/11141271

- task: PublishPipelineArtifact@1
  inputs:
    targetPath: '$(Pipeline.Workspace)'
    artifact: 'AzLogicApp'
    publishLocation: 'pipeline'

(using PublishPipelineArtifact instead of PublishBuildArtifacts let me upload a dir of PDFs as a single artifact and then download them successfully)

TeamDman avatar Nov 17 '23 20:11 TeamDman