George
George

Reputation: 170

How to copy specific artifacts across multiple instances in Artifactory?

How can I copy a specific artifact to another instance of Artifactory?

From what I can see the export/import functionality only works for full system or full single repo copying. I don't want to replicate the full repo either. I just want to copy specific artifacts.

Upvotes: 3

Views: 3002

Answers (2)

Javier C.
Javier C.

Reputation: 8257

You can use CLI for Jfrog Artifactory for copying the file with the new name to another repo:

    jfrog rt cp "your-artifactory-repo/artifact.extension" your-new-artifactory-repo/artifact.extension

Note: you can use * if you want to copy all the artifacts from the folder.

Upvotes: 2

Ariel
Ariel

Reputation: 3506

Have you tried using the JFrog CLI? It can be used to download artifacts from Artifactory by giving a specific pattern. So, for example, you can download only the "war" files from a specific repository and then import it / deploy it to the rest of the instances that you want. You can also write a script using the JFrog CLI that will download and then publish those artifacts to the other Artifactory instances using the CLI.

https://www.jfrog.com/getcli/

Upvotes: 3

Related Questions