- 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


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

now we add build step, that build java application and create “jar file”
Execute shell=mvn clean verify


Jenkins freestyle job – Execute Shell


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

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