Can someone help me find a way to copy an artifact from one artifactory location to another location, inside the same repository. I understand there are ways to move artifactory between repositories, but my requirement is to move x1
to module-2
as in below folder structure.
+
+- repository
+- com
+- module-1
| +- x1
+- module-2
+- x2
Thank you very much in advance.
The easiest way is using the REST API. Here's an example:
curl -v -X -d "" POST -uusername "http://host:port/artifactory/api/move/repository/com/module-1/x1?to=/repository/com/module2/x1"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With