Issue
jenkins and nexus are installed in docker containers on the same machine. All guides describe how to do the integration using the maven. But what if I just need to upload files from Jenkins to Nexus? I know that this can be done through a plugin "Nexus Artifact Uploader", but I don’t understand exactly how
Solution
In Nexus Artifact Uploader
, you need to fill up the following details:
Note: Below are the sample example data and the pre-requisite is to have a repository created in nexus.
- Nexus Version: NEXUS3 (Type of Nexus Repository Manager ex. NEXUS2 or NEXUS3)
- Protocol: HTTP (Protocol used for Nexus setup ex. HTTP or HTTPS)
- Nexus URL: localhost:8081 (URL of Nexus)
- Credentials: nexus-admin (credentials used to access nexus)
- GroupId: portal (unique base name of the company or group that created the project)
- Version: 1.0 (version of the project)
- Repository: maven-releases (name of the repository where you want to upload the artifacts)
- ArtifactId: web-portal (a unique name of the project)
- Type: tar.gz (type of artifact packaging like zip, tar, war, jar etc)
- File: web-portal.tar.gz (File path in the workspace. ex: artifact.zip or artifact.jar)
Find the screenshot as well:
Answered By - Sourav Atta
Answer Checked By - Terry (JavaFixing Volunteer)