Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move artifacts in artifactory?

Tags:

artifactory

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.

like image 760
Radan Avatar asked Feb 16 '23 12:02

Radan


1 Answers

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"
like image 145
JBaruch Avatar answered Mar 11 '23 19:03

JBaruch