Connect to an Artifact Repo
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
- Review: Artifact Repository Connectors Scope
- Step: Add an Artifactory Repository
- Step: Add a Docker Registry
- Step: Add an HTTP Helm Repo
- Step: Add a Nexus Repository
- See Also
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
- Open a Harness Project.
- In Project Setup, click Connectors.
- Click New Connector, and click Artifactory in Artifact Repositories. The Artifactory Repository settings appear.
- In Name, enter a name for this connector.
- Click Continue.
- Enter the Artifactory Repository URL.
- In Authentication, select one of the following options:
- 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.
- Anonymous (no credentials required).
- Click Continue.
- In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
- Click Save and Continue.
- Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.
Step: Add a Docker Registry
- Open a Harness Project.
- In Project Setup, click Connectors.
- Click New Connector, and click Docker Registry in Artifact Repositories. The Docker Registry settings appear.
- In Name, enter a name for this connector.
- Click Continue.
- Enter the Docker Registry URL.
- Select a Provider Type.
- In Authentication, select one of the following options:
- 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.
- Anonymous (no credentials required).
- Click Continue.
- In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
- Click Save and Continue.
- Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.
Step: Add an HTTP Helm Repo
- Open a Harness Project.
- In Project Setup, click Connectors.
- Click New Connector, and click HTTP Helm Repo in Artifact Repositories. The HTTP Helm Repo settings appear.
- In Name, enter a name for this connector.
- Click Continue.
- Enter the Helm Repository URL.
- In Authentication, select one of the following options:
- 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.
- Anonymous (no credentials required).
- Click Continue.
- In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
- Click Save and Continue.
- Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.
Step: Add a Nexus Repository
- Open a Harness Project.
- In Project Setup, click Connectors.
- Click New Connector, and click Nexus in Artifact Repositories. The Nexus Repository settings appear.
- In Name, enter a name for this connector.
- Click Continue.
- Enter the Nexus Repository URL.
- Select a Version.
- In Authentication, select one of the following options:
- 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.
- Anonymous (no credentials required).
- Click Continue.
- In Setup Delegates, enter Selectors for specific Delegates that you want to allow to connect to his Connector.
- Click Save and Continue.
- Once the Test Connection succeeds, click Finish. The Connector is listed in Connectors.