You need to install Nexus artifact uploader plug-in to integrate Nexus with Jenkins. Let us see how to integrate Jenkins with Nexus and able to upload war/ear/jar/exe/DLLs.
Pre-requisites:
Install Nexus Artifact Uploader plugin in Jenkins.
Steps:
1. Once you installed the above plug-ins, click existing FreeStyle job configuration or create a new job.
2. Under source code management. enter GitHub or Bitbucket repo url and git credentials.
3. Go to build section, add Maven targets. with goals clean install. Also click advance, give path of POM.xml
4. click on Add build step, choose Nexus artifact uploader.
5. Enter information per below screen shot.
Make sure you enter version as 1.0-SNAPSHOT and repository as maven-snapshots. You can take the information from your WebApp/pom.xml from Bitbucket Repo
6. Click on Apply, Save.
7. Now login to Nexus repo, Click on Components, Click on maven-snapshots
8. you shall see the WAR being uploaded here.
Note:
Click here for Jenkins pipeline code for Nexus Upload.
Click below to watch the YouTube video:
Install Nexus Artifact Uploader plugin in Jenkins.
Steps:
1. Once you installed the above plug-ins, click existing FreeStyle job configuration or create a new job.
2. Under source code management. enter GitHub or Bitbucket repo url and git credentials.
3. Go to build section, add Maven targets. with goals clean install. Also click advance, give path of POM.xml
4. click on Add build step, choose Nexus artifact uploader.
5. Enter information per below screen shot.
Make sure you enter version as 1.0-SNAPSHOT and repository as maven-snapshots. You can take the information from your WebApp/pom.xml from Bitbucket Repo
6. Click on Apply, Save.
7. Now login to Nexus repo, Click on Components, Click on maven-snapshots
8. you shall see the WAR being uploaded here.
Note:
Click here for Jenkins pipeline code for Nexus Upload.
Click below to watch the YouTube video:
Truly a very good article on future technology. Thanks for discussing this, I love to learn more about this topic.
ReplyDeleteDevOps Training in Chennai
DevOps course in Chennai
AWS Training in Chennai
AWS Training in Velachery
Cloud Computing Courses in Chennai
Cloud Training in Chennai
DevOps Training in OMR
DevOps Training in Chennai