Artifactory supports deploying artifacts to a virtual repository.
To enable this, you must first designate one of the local repositories aggregated by the virtual repository as the default deployment target.
Set the Default Deployment Repository using the UI
In the platform UI, the default deployment repository is defined on the virtual repository's configuration screen.
To set the default deployment repository in the UI:
In the Administration module, select Repositories.
Click the Virtual tab.
Locate the relevant virtual repository and click its repository key.
Scroll down to the Default Deployment Repository field and select one of the local repositories from the drop-down list.
Click Save.
Set the Default Deployment Repository using the API
You can set the Default Deployment Repository using the defaultDeploymentRepo
parameter of the Virtual Repository Configuration JSON used by the Update Repository Configuration REST API endpoint. Once the deployment target is configured, you may deploy artifacts using any packaging format client configured to work with Artifactory (for example, docker push, npm publish, NuGet push, gem push
, etc.).
You can also use Artifactory's REST API to deploy an artifact and use the virtual repository key in the path to deploy.
Note
If you specify a Default Deployment Repository for a virtual repository, the corresponding Set Me Up dialog for the repository will include instructions and code snippets for deploying to that repository.