josecrespo
josecrespo

Reputation: 11

Synchronization of two Artifactories

I have two Artifactory repos for maven in two distinct places and domains, but I need to synchronize it for that, when to deploy in one of theirs the other must have their information.

I don't know if Jenkins, Hudson, or TeamCity can help me in this work and how I can do it or the cloud workspace like cloudfoundry an cloudbees can help me. I was reading something like these here

Upvotes: 1

Views: 2440

Answers (2)

JBaruch
JBaruch

Reputation: 22923

The answer is so obvious, I am a bit surprised the other authors use phrases like "some kind of synchronization" and " cluster feature for sync". Artifactory has full push/pull 2-way (optionally event-based) replication. Period. Just read the manual.

Upvotes: 2

Larry Cai
Larry Cai

Reputation: 60163

There are several ways to achieve this.

  1. using cluster feature for sync method in artifactory, this will sync. all repo including your maven sites http://www.jfrog.com/confluence/display/RTF/Clustering+Artifactory, surely it depends the relation of your two artifactory

  2. using maven command, why not use maven deploy commands to deploy two maven sites every time

  3. create one jenkins job to sync the maven repo when one is updated

  4. using rsync command to sync the repos (directory) in back directly

Upvotes: 2

Related Questions