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

Download pipeline artifact breaks folder structure when downloading pipeline artifact, reopened #12682 #16522

Open
leinoaa opened this issue Jul 4, 2022 · 7 comments

Comments

@leinoaa
Copy link

leinoaa commented Jul 4, 2022

Required Information
Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: DownloadPipelineArtifact@2

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment
Server - Azure Pipelines

Agent - Private Windows agent, agent version 2.165.0

Issue Description
If you are downloading a pipeline artifact (from another pipeline) and the name of the artifact is used in the folder structure of the artifact, it can cause the following issues.

Folder level removed, file renamed:

Solutions/ThisIsAnArtifactName/url.runsettings
-> Solutions/ThisIsAnurl.runsettings

Folder level removed:
Solutions/ThisIsAnArtifactName/Obj/...
-> Solutions/ThisIsAnObj/...

So it seems that the 'artifact name' is deleted from the folder structure, which may result in lost folder-levels or changed folder names and changed file names. And the breaking only happens for only the folder that has similarities with the artifact name, rest of the folders stay as they should. Also if you check the built artifact, there the folder structure is correct. So the copying breaks it.

Task logs
No logs, just observed functionality from the result.

Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Error logs
No logs, just observed functionality from the result.

@leinoaa
Copy link
Author

leinoaa commented Jul 4, 2022

Resubmitted #12682 as other users also confirmed the issue. I think we started using a workaround for this, so haven't checked this myself in two years..

@CorrenSoft
Copy link

I can confirm that this is still happening.

@Goffen
Copy link

Goffen commented Dec 6, 2022

Yes, I can still confirm this as well..

@iolalimited
Copy link

Still happening but in the hope that it helps somebody else, change from using the "Download Pipeline Artifacts" task to the "Download Build Artifacts" task and the issue is no longer present.

@dombarnes
Copy link

Still an issue a year later. I just updated the Artifact Name in my case to get around it.

Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Jan 16, 2024
@abatishchev
Copy link

Adding @silviuandrica. can you please help to avoid this issue from being auto-closed?

@github-actions github-actions bot removed the stale label Jan 16, 2024
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

6 participants