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

No way to download everything including subfolders into workspace #45

Open
g-ericso opened this issue Jun 28, 2018 · 4 comments · May be fixed by #109
Open

No way to download everything including subfolders into workspace #45

g-ericso opened this issue Jun 28, 2018 · 4 comments · May be fixed by #109
Labels
backlog Issues that we are not currently addressing

Comments

@g-ericso
Copy link

g-ericso commented Jun 28, 2018

I am having trouble to download everything under a bucket with subfolders.

gsutil cp -r does not work in this case.

@agoulti
Copy link
Contributor

agoulti commented Jun 28, 2018

I'm sorry, I don't completely understand your use case.
Are you using the Jenkins Storage plugin? Classic or pipeline?
Where does "gsutil -r" come in?

In the docs for the Download Step, it points out that in Objects to Download:

Currently only a single asterisk at the lowest level of the object name is supported.

If you are using gsutil directly, isn't the "-r" option specifically to disable wildcard handling?
Do you want to use it without the "-r"?
See https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames#directory-by-directory-vs-recursive-wildcards

Does this help? I admit, I may be misunderstanding what you are trying to do.

@g-ericso
Copy link
Author

g-ericso commented Jun 28, 2018

I want to download everything in a subfolder under a bucket. I am using Jenkins Cloud Storage plugin.

If I do:

gs://.../*

which only downloads all files under the specific directory but not the files inside subdirectory.

I cannot do:

  • gs://.../**/*
  • gs://.../**

I don't have any solution except putting all subdirectories into a different sections.

@agoulti
Copy link
Contributor

agoulti commented Jun 28, 2018

Yes, if you are using gsutil you would do gs://.../**
Unfortunately the plugin does not yet support this syntax.

This sounds like a feature request to implement support for the double asterisk.
It would be great to support it! Unfortunately, I don't have time to jump on it.

I will leave this open and will gladly review a PR if anyone wants to send one.

@stephenashank stephenashank added the backlog Issues that we are not currently addressing label Sep 24, 2019
@v1v v1v linked a pull request May 4, 2020 that will close this issue
3 tasks
@daegalus
Copy link

Any progress on this? I just hit this same problem when trying to download a path and everything in it.

v1v added a commit to elastic/apm-server that referenced this issue Mar 16, 2022
v1v added a commit to v1v/apm-server that referenced this issue Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Issues that we are not currently addressing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants