Added Sonarqube tool for pipelines II
This commit is contained in:
@@ -16,7 +16,6 @@ pipeline {
|
||||
}
|
||||
stage('SonarQube Analysis') {
|
||||
steps {
|
||||
def scannerHome = tool 'Sonar';
|
||||
withSonarQubeEnv('Sonar') {
|
||||
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar -Dsonar.projectKey=com.itnove.example -Dsonar.projectName=com.itnove.example -Dsonar.projectVersion=${BUILD_NUMBER} -Dsonar.language=java -Dsonar.sources=src/ -Dsonar.sourcesEnconding=UTF-8 -Dsonar.java.binaries=target/classes -Dsonar.exclusions=src/test/**'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user