Skip to content
Open

pull #15

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
10 changes: 5 additions & 5 deletions sonarqube/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
pipeline{
agent any
environment {
PATH = "$PATH:/opt/apache-maven-3.8.2/bin"
PATH = "C:/Users/tarun/Desktop/maven/apache-maven-3.8.8"
}
stages{
stage('GetCode'){
steps{
git 'https://github.com/ravdy/javaloginapp.git'
git 'https://github.com/kumarkaranam1/DevOps.git'
}
}
stage('Build'){
Expand All @@ -15,9 +15,9 @@ pipeline{
}
}
stage('SonarQube analysis') {
// def scannerHome = tool 'SonarScanner 4.0';
steps{
withSonarQubeEnv('sonarqube-8.9') {
//
steps{def scannerHome = tool 'SonarScanner 4.0';
withSonarQubeEnv('sonarqube') {
// If you have configured more than one global server connection, you can specify its name
// sh "${scannerHome}/bin/sonar-scanner"
sh "mvn sonar:sonar"
Expand Down