Deploy to a Virtual Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

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:

  1. In the Administration module, select Repositories.

  2. Click the Virtual tab.

  3. Locate the relevant virtual repository and click its repository key.

  4. Scroll down to the Default Deployment Repository field and select one of the local repositories from the drop-down list.

    default_deployment_repo.png
  5. 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.).Update Repository Configuration

You can also use Artifactory's REST API to deploy an artifact and use the virtual repository key in the path to deploy.Deploy Artifact

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.