Using Artifactory 6.x ?
JFrog Artifactory 6.x User Guide
Have a question? Want to report an issue?Contact JFrog support
Download statistics may vary between Artifactory instances
Downloads are only reported through the proxy chain from the time this option is set, so the actual download statistics reported for an artifact may be different in the local Artifactory instance compared the numbers reported in the remote Artifactory instance.
Synchronized properties
When you proxy a repository in another instance of Artifactory and cache an artifact downloaded from it, you may not be aware of changes that may have been made to the original artifact’s properties if they are done after you cache it. By synchronizing properties, any changes to artifact properties in the remote instance are propagated to your cached instance of the artifact.
Remote repository browsing
You can browse the contents of the repository in the remote Artifactory instance for all package types, even if none have been cached in your instance of Artifactory.
Source absence detection
When viewing a cached artifact, Artifactory will indicate if the original artifact in the remote instance has been deleted. This gives you an opportunity to copy the artifact over from your remote repository cache to a local repository in case you need to maintain access to it.
update an internal counter for remote downloads.
配置
To create a Smart Remote Repository, set the repositoryURLto point to a repository in another instance of Artifactory.
Repository URL must be prefixed with api/
To accommodate different packaging format clients, for several repository types, when accessing the repository through Artifactory, the repository URL must be prefixed withapi/
For example,
Or, if you are using Artifactory SaaS the URL would be:
https://
The prefix is required for the following repository types:
Type | Prefix |
---|---|
鲍尔 | api/bower |
Chef | api/chef |
CocoaPods | api/pods |
Docker | api/docker |
Go | api/go |
NuGet | api/nuget |
Npm | api/npm |
PHP Composer | api/composer |
Puppet | api/puppet |
PyPI | api/pypi |
RubyGems | api/gems |
Vagrant | api/vagrant |
Once you have finished entering the URL and move to another field, Artifactory automatically detects that the remote URL is on another instance of Artifactory and displays a dialog where you can configure the behavior of your smart remote repository.
还请注意,飞机包e icon is overlaid with an Artifactory logo to indicate a smart remote repository.
Report Statistics |
If set, Artifactory will notify the remote instance whenever an artifact in the Smart Remote Repository is downloaded locally so the it can update its download counter. Note that if this option is not set, there may be a discrepancy between the number of artifacts reported to have been downloaded in the different Artifactory instances of the proxy chain. |
Sync Properties |
If set, properties for artifacts that have been cached in this repository will be updated if they are modified in the artifact hosted at the remote Artifactory instance. The trigger to synchronize the properties is download of the artifact from the remote repository cache of the local Artifactory instance. |
List Remote Folder Items |
If set, enablesRemote List Browsing. |
Source Absence Detection |
如果设置,Artifactory cach显示指示ed items if they have been deleted from the corresponding repository in the remote Artifactory instance. |
You can modify these settings at any time from theEdit Repositoryscreen.
Smart Remote NuGet Repositories
When configuring aSmart Remote NuGet Repository, make sure to setNuget Download Context PathtoDownload
andNuGet Feed Context Pathshould remain blank.
Remote List Browsing
WhenList Remote Folder Itemsis checked for a repository, Artifactory lets you navigate the contents of the repository at the remote Artifactory instance, for all package types, even if the artifacts have not been cached in the repository defined in your instance of Artifactory.