Sonar Nexus-Full Document
Sonar Nexus-Full Document
SONAR NEXUS
Sonar Nexus is a repository manager. It allows you to proxy, collect, and
manage your dependencies so that you are not constantly juggling a
collection of JARs. It makes it easy to distribute your software. Internally,
you configure your build to publish artifacts to Lifecycle and they then
become available to other developers.
Nexus supports various package formats such as Maven, npm,
NuGet, PyPI, and more.
Preq :
Instance type : t2 medium
Ami : Amazon Linux 2 Kernel 5.10 AMI 2.0.20240412.0 x86_64 HVM
gp2
Security group : allow all traffic (inbound )
Ebs volume : 30gb
Launch an Instance.
Now create file :
vi sonar nexus.sh
sudo yum update -y
[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
EOL
Click on Next
Click on finish.
See left side Browse option click on it.
Preq :
Instance type : t2 medium
Ami : Amazon Linux 2 Kernel 5.10 AMI 2.0.20240412.0 x86_64 HVM
gp2
Security group : allow all traffic (inbound)
Ebs volume : 30gb
Launch an jenkins instance.
Created file
vi Jenkins.sh
agent any
stages {
stage('clone') {
steps {
git 'https://github.com/saridiramesh/jenkins-java-project.git'
stage('artifact') {
steps {
Go github – repository we find this file pom.xml these values available should
enter below
agent any
stages {
stage('clone') {
steps {
git 'https://github.com/saridiramesh/jenkins-java-project.git'
stage('artifact') {
steps {
stage('artifact uploader') {
steps {