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 #12682

Closed
leinoaa opened this issue Apr 14, 2020 · 5 comments
Labels
Area: ArtifactsCore Azure Artifacts Core Team bug stale

Comments

@leinoaa
Copy link

leinoaa commented Apr 14, 2020

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.

@github-actions github-actions bot added Area: ArtifactsCore Azure Artifacts Core Team bug labels Apr 14, 2020
@github-actions
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

@CorrenSoft
Copy link

I have experienced this bug today. One of the folders has the same name as the generated artifact, and when it is downloaded the folder just disappears.

Example:
Orginal path: SomeName/internalFolder/SomeName/SomeFile.md
Downloaded path: ../SomeName/internalFolder/SomeFile.md

This happens when using the DownloadPipelineArtifact@2 task, not with the shortcut (download).

Could be this reopened?

@joshmurari
Copy link

This issue is still present and needs to be reopened.

@abatishchev
Copy link

@leinoaa please see if you can reopen the issue.

@leinoaa
Copy link
Author

leinoaa commented Jul 4, 2022

FYI, as the latest even shows, opened new issue #16522. Also, as I didn't initially get any updates to this, I started using a workaround..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ArtifactsCore Azure Artifacts Core Team bug stale
Projects
None yet
Development

No branches or pull requests

4 participants