Can Artifactory Replicate Buildinfo

JFrog Support
2020-12-07 17:41

Relevant Versions: This information pertains to Artifactory versions 6.6 and above.

Earlier versions of Artifactory were not able to replicate builds. Builds could not be replicated using Repository Replication because the buildinfo.json files were not considered artifacts yet. However, it was possible to replicate the build-info from one server to another by adding a user plugin. Several user plugins available for replicating build-info can be found on JFrog’s public Github repository. This plugin is now deprecated for versions 6.6 and above.

Since Artifactory 6.6, such user plugins no longer need to be used because build replication has been added to the native application as a part of the new build-info repository. Now, you can use the REST API to create or change the replication configuration for the artifactory-build-info repository:

curl -uadmin:password -v -XPUT -H"Content-type: application/json" -T replicate-builds.json https://localhost:8081/artifactory/api/replications/artifactory-build-info

{
        "url":"https://example.com/artifactory/artifactory-build-info",
        "username":"admin",
        "password":"password",
        "enabled":true,
        "cronExp":"0 0 /4 * * ?",
        "repoKey":"artifactory-build-info"
}