Connect to an Artifact Repo

Updated 1 week ago by Michael Cretzman

You connect Harness to an artifact repo by adding an Artifact Repositories Connector.

You can connect to an artifact repo inline when developing your Pipeline, or separately in your Account/Org/Project Connectors. Once add the Connector, it'll be available in Pipelines and Connectors of the same Account/Org/Project.

In this topic:

Before You Begin

Review: AWS, Azure, and Google Cloud Storage Artifacts

Connectors for artifacts stored in Google Cloud Storage or Amazon S3 are added as Cloud Providers Connectors, not Artifact Repositories.

If you are using Google Cloud Storage or Amazon S3, see Cloud Platform Connectors.

For Azure ACR, use the Docker Registry Connector, described below.

Review: Artifact Repository Connectors Scope

You can add an Artifact Repository Connector at the Account/Org/Project scope.

This topic will explain how to add it at the Project scope. The process is same for Org and Account.

Steps on adding the Artifact Repository Connector inline when developing a Pipeline are covered in the relevant How-to and Technical Reference topics. For example, adding a Docker Registry is covered in the Kubernetes CD Quickstart and Docker Connector Settings Reference.

Step: Add an Artifactory Repository

For details on settings and permissions, see Artifactory Connector Settings Reference.
  1. Open a Harness Project.
  2. In Project Setup, click Connectors.
  3. Click New Connector, and click Artifactory in Artifact Repositories. The Artifactory Repository settings appear.
  4. In Name, enter a name for this connector.
  5. Click Continue.
  6. Enter the Artifactory Repository URL.
  7. In Authentication, select one of the following options:
    1. Username and Password - Once you choose this option, you need to enter the Username and Password. For Password you can either create a new Secret or use an existing one.
    2. Anonymous (no credentials required).
  8. Click Continue.
  9. In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
  10. Click Save and Continue.
  11. Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.

Step: Add a Docker Registry

For details on settings and permissions, see Docker Connector Settings Reference.
  1. Open a Harness Project.
  2. In Project Setup, click Connectors.
  3. Click New Connector, and click Docker Registry in Artifact Repositories. The Docker Registry settings appear.
  4. In Name, enter a name for this connector.
  5. Click Continue.
  6. Enter the Docker Registry URL.
  7. Select a Provider Type.
  8. In Authentication, select one of the following options:
    1. Username and Password - Once you choose this option, you need to enter the Username and Password. For Password you can either create a new Secret or use an existing one.
    2. Anonymous (no credentials required).
  9. Click Continue.
  10. In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
  11. Click Save and Continue.
  12. Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.

Step: Add an HTTP Helm Repo

For details on settings and permissions, see HTTP Helm Repo Connector Settings Reference.
  1. Open a Harness Project.
  2. In Project Setup, click Connectors.
  3. Click New Connector, and click HTTP Helm Repo in Artifact Repositories. The HTTP Helm Repo settings appear.
  4. In Name, enter a name for this connector.
  5. Click Continue.
  6. Enter the Helm Repository URL.
  7. In Authentication, select one of the following options:
    1. Username and Password - Once you choose this option, you need to enter the Username and Password. For Password you can either create a new Secret or use an existing one.
    2. Anonymous (no credentials required).
  8. Click Continue.
  9. In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
  10. Click Save and Continue.
  11. Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.

Step: Add a Nexus Repository

For details on settings and permissions, see Nexus Connector Settings Reference.
  1. Open a Harness Project.
  2. In Project Setup, click Connectors.
  3. Click New Connector, and click Nexus in Artifact Repositories. The Nexus Repository settings appear.
  4. In Name, enter a name for this connector.
  5. Click Continue.
  6. Enter the Nexus Repository URL.
  7. Select a Version.
  8. In Authentication, select one of the following options:
    1. Username and Password - Once you choose this option, you need to enter the Username and Password. For Password you can either create a new Secret or use an existing one.
    2. Anonymous (no credentials required).
  9. Click Continue.
  10. In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
  11. Click Save and Continue.
  12. Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.

See Also


Please Provide Feedback