Nexus Setup and Integrated With Jenkins
Nexus Setup and Integrated With Jenkins
run_as_user="nexus"
[Unit]
Description=nexus service
After=network.target
[Service]
Type=forking
LimitNOFILE=65536
User=nexus
Group=nexus
ExecStart=/app/nexus/bin/nexus start
ExecStop=/app/nexus/bin/nexus stop
User=nexus
Restart=on-abort
[Install]
WantedBy=multi-user.target
AFTER LOGIN INTO NEXUS SIGN OUT FROM THE DASHBOARD, BECAUSE THAT IS THE
DEFAULT PAGE, WE NEED TO CREATE OUR BY OWN
CLICK ON SIGN-IN
USERNAME: admin
use this command in our server to get the password and paste it into our nexus dashboard
NOW GO TO SERVER ADMINISTRATION AND CONFIGURATION
SELECT REPOSITORIES
SELECT CREATE-REPOSITORY
SELECT MAVEN2(HOSTED)
GIVE REPOSITORY NAME AS myapp-releases and click on create repositories
GO TO SONATYPE NEXUS
ADD CREDENTIALS :
and add description as nexus credentials
then we can see that war files are stored in nexus repository
==============================================================================================
Or or or or or or or or or or or or or or or
==============================================================================================
Server-id: nexus-repo
Server url: public ip of nexus:8081
Credentials: ****
Test connection
Go to job:
Configure —>
Nexus-repo: sample-releases
packages:
Package: war
Artifact:
Extension: .war