Add a Nexus connector
Documentation for the provisioning of Nexus Repository connectors.
You connect Harness to Nexus using a Harness Nexus connector. This connector allows you to pull artifacts stored in your Nexus repository, including Docker, Maven, npm, and NuGet formats, for use in Harness pipelines.
This topic shows you how to add a Nexus connector to Harness.
For details on settings and permissions, see Nexus Connector Settings Reference.
What you will learn from this topic
How to add a Nexus connector to a Harness project so you can pull artifacts in a pipeline.
Add a Nexus connector
You can add a Nexus connector at the project, org, or account scope. This procedure covers the project scope, and the process is the same for org and account. You can also add a Nexus connector directly when configuring the artifact source in a service.
Follow the interactive guide below for a step-by-step walkthrough:
Perform the following steps to add a Nexus connector:
Open your Harness project.
In Project Settings, select Connectors.
Select New Connector, then select Nexus. The Nexus Repository settings appear.
Overview
In Name, enter a name for this connector. Optionally, add a description and tags. Click Continue.
Details
In Nexus Repository URL, enter the URL that you use to connect to your Nexus server. For example,
https://nexus3.dev.mycompany.io/repository/your-repo-name.Select a Version.
In Authentication, select one of the following options:
Username and Password: Enter the Username for the account. For Password, create a new Harness Encrypted Text secret or use an existing one.
Anonymous (no credentials required). Click Continue.
Delegates Setup
In Delegates Setup, use any delegate or enter tags for the specific delegates that you want to allow to connect to this connector. Click Save and Continue.
Test Connection
Click Finish after the test connection succeeds. The connector is listed in Connectors.
Sample YAML
The following example shows a YAML for the Nexus connector created in this guide.
Next steps
Artifact repository connectors: learn about the other artifact repository connectors Harness supports.
Use delegate selectors: control which delegates can connect to this connector.
Add a secret manager: store connector credentials in a secret manager.
Last updated
Was this helpful?