Add Artifactory Servers

Updated 2 months ago by Chakravarthy Tenneti

Harness supports both cloud and on-prem versions of Artifactory. Connect your Artifactory artifact servers with Harness.

In this topic:

Before You Begin

Visual Summary

Here's an example of the Artifactory Sources configuration.

Review: Artifactory Permissions

Make sure the following permissions are granted to the user:

  • Privileged User is required to access API, whether Anonymous or a specific username (username and passwords are not mandatory).
  • Read permission to all Repositories.

If used as a Docker Repo, user needs:

  • List images and tags
  • Pull images

See Managing Permissions: JFrog Artifactory User Guide

Step 1: Select Artifactory Server

To connect to an artifact server, do the following:

  1. Click Setup.
  2. Click Connectors.
  3. Click Artifact Servers.
  4. Click Add Artifact Server.
  5. In Type, select Artifactory.

Step 2: Display Name

Enter a name for the Artifactory Server. This is the name you will use to identify this connection when adding an Artifact Source to a Harness Service.

Step 3: Artifactory URL

In the Artifactory URL field, ensure that you enter in your base URL followed by your module name.

For most artifacts, use https://mycompany.jfrog.io/module_name.

In some cases, you can use https://server_name/artifactory/module_name.

The URL really depends on how you have set up Artifactory, and whether it is local, virtual, remote, or behind a proxy.

To ensure you use the correct URL, copy it from your Artifactory settings.

See Repository Management from JFrog.

Step 4: Credentials and Usage Scope

Enter the credentials.

For secrets and other sensitive settings, select or create a new Harness Encrypted Text secret.

Usage Scope is determined by the secret you selected.

Click Submit.

See Also


How did we do?