Integration Jenkins with Nexus Repository Manager OSS

  • run devops stack
  • install Nexus Platform Plugin
  • configure credentials for access to Nexus repository from Jenkins
  • set configuration for Jenkins
  • create freestyle jenkins job
  • check if our jar artifact is uploaded on Nexus Repository

run my devops stack

follow this link and install devops stack

Install Nexus Platform plugin

go to http://localhost:90/jenkins/pluginManager/available and select Nexus Platform plugin

Configure credentials for access to Nexus

go to http://localhost:90/jenkins/credentials/store/system/domain/_/newCredentials

Set configuration for Jenkins

go to http://localhost:90/jenkins/configure

Jenkins /configure system – Nexus repository settings
Jenkins /configure system – Nexus repository settings

Create freestyle jenkins job

go to http://localhost:90/jenkins/view/all/newJob

set Source Code Management
REPOSITORY URL=https://github.com/devuserPP/simple-java-maven-app.git

Jenkins freestyle job – Souce Code Management

now we add build step, that build java application and create “jar file”

Execute shell=mvn clean verify


Jenkins freestyle job – Execute Shell
Jenkins freestyle job – Nexus Repository Manager Publisher

Check if our jar artifact is uploaded on Nexus Repository

go to http://localhost:90/nexus/ and login with user and password admin.

I can see the application is here

Sonatype Nexus Repository Manager – Maven-releases

if I want run the jenkins job again, you need to enable “re-deploy” on maven-release repository . This allow rewrite your published folder.

Leave a Reply

Close Menu