Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: DownloadBuildArtifacts@1 warning, Please use Download Build Artifact task for downloading UNC type artifact #19829

Open
4 of 7 tasks
ToreDemant opened this issue May 1, 2024 · 1 comment

Comments

@ToreDemant
Copy link

New issue checklist

Task name

DownloadBuildArtifacts

Task version

1.220.0

Issue Description

We noticed that we were using DownloadBuildArtifacts@0 while a @1 version was available. Upgrading, while doing no other changes, lead to the warning:
Please use Download Build Artifact task for downloading UNC type artifact. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-build-artifacts?view=azure-devops

The warning message is a bit strange as we are in fact using the task mentioned and UNC type artifacts!?

Artifact was uploaded using PublishBuildArtifacts@1 which seems to match DownloadBuildArtifacts and no warning was emitted before updating to DownloadBuildArtifacts@1.

We are using Azure DevOps Server so we cannot use PublishPipelineArtifacts/DownloadPipelineArtifacts, but it would be nice to know why on-prem is kept on these older and less optimized tasks. There seems to be few changes between @0 and @1 so I guess that we could revert the change, but wonder if the @0 would be deprecated at some point.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

Azure DevOps Server (Please specify exact version in the textbox below)

Azure DevOps Server Version (if applicable)

Azure DevOps Server 2022.1 Update 1

Operation system

Windows Server 2019

Relevant log output

Starting: Download Artifacts: DevResults
==============================================================================
Task         : Download build artifacts
Description  : Download files that were saved as artifacts of a completed build
Version      : 1.220.0
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/download-build-artifacts
==============================================================================
Download from the specified build: #622906
Download artifact to: D:\Build\Agent-01\_work\228\a
##[warning]Please use Download Build Artifact task for downloading UNC type artifact. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-build-artifacts?view=azure-devops
Using default max parallelism.
Max dedup parallelism: 192
Hashtype: Dedup64K
Minimatch patterns: [\\server.com\data\xxx\yyy\zzz\**]
Pattern: **
Minimatch patterns: [**]
Applying include pattern against original list.
9 matches
9 final results
Copy file '\\server.com\data\xxx\yyy\zzz\DevResults\file.xml' to 'D:\Build\Agent-01\_work\228\a\DevResults\file.xml'

...

Downloading artifact finished.
Finishing: Download Artifacts: DevResults

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

No response

@omghb
Copy link

omghb commented May 8, 2024

I run into the same issue. I will switch back to version #0 for now.

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

No branches or pull requests

2 participants