snippetMinor
Directory structure - how do I upload it as-is to an artifactory?
Viewed 0 times
directoryuploadstructurehowartifactory
Problem
I am new to Artifactory, and I wonder how to upload a directory structure containing many different binaries -- keeping the structure intact -- to an artifactory?
Solution
This can be done through the Jrog CLI. The CLI has a recursive option that looks like it will do what you hope.
The CLI also has some performance improvements for uploads that doing it through curl or a browser don't seem to get. Also, scriptable!
To include full directory structure you will want to use the flag --flat=false
jfrog rt upload --recursive artifactory-mirror/* artifact-repo/dir-struct/The CLI also has some performance improvements for uploads that doing it through curl or a browser don't seem to get. Also, scriptable!
To include full directory structure you will want to use the flag --flat=false
jfrog rt upload --flat=false --recursive artifactory-mirror/* artifact-repoCode Snippets
jfrog rt upload --recursive artifactory-mirror/* artifact-repo/dir-struct/jfrog rt upload --flat=false --recursive artifactory-mirror/* artifact-repoContext
StackExchange DevOps Q#4609, answer score: 6
Revisions (0)
No revisions yet.