Can Artifactory Replicate Buildinfo

Can Artifactory Replicate Buildinfo

AuthorFullName__c
JFrog Support
articleNumber
000004032
ft:sourceType
Salesforce
FirstPublishedDate
2017-08-28T17:35:37Z
lastModifiedDate
2024-03-10T07:46:11Z
VersionNumber
6

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 http://localhost:8081/artifactory/api/replications/artifactory-build-info

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