简体   繁体   中英

How to integrate Jenkins and Nexus (without maven)

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

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:

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM