Skip to content
Open

Repo #433

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Jenkins-sonar-nexus-tomcat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pipeline{
agent any
tools {
maven 'Maven-3.6.1'
tool name: '', type: 'maven'
}

environment{
Expand All @@ -10,12 +10,12 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinivas1987devops/myweb.git'
git credentialsId: 'be1db74f-8627-4cab-b17a-3fc13bd2711d', url: 'https://github.com/sanjayka1999/myweb.git''
}
}
stage("Maven Build"){
steps{
sh "mvn clean sonar:sonar package"
sh "mvn clean sonar:sonar package"

}
}
Expand All @@ -31,7 +31,7 @@ pipeline{
],
credentialsId: 'nexus3',
groupId: 'in.javahome',
nexusUrl: '172.31.38.33:8081',
nexusUrl: '54.82.196.128:8081',
nexusVersion: 'nexus3',
protocol: 'http',
repository: 'sample-releases',
Expand Down
5 changes: 5 additions & 0 deletions SonarQube analysis
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#code for sonarqube analysis

mvn sonar:sonar \
-Dsonar.host.url=http://52.91.36.190:9000 \
-Dsonar.login=d70e8dd3f551597c8a0dc60dc8ff42f57047d395
File renamed without changes.
Loading