Skip to content
Snippets Groups Projects
Commit 56c19175 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-199 add sonarqube

parent 31798824
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,10 @@ pipeline {
container("maven-11"){
sh 'mvn --version'
dir('pluto-interface') {
withSonarQubeEnv('sonarqube'){
configFileProvider([configFile(fileId: '9aac2fac-7d8d-4128-846b-0a61951df703', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS clean install'
sh 'mvn -s $MAVEN_SETTINGS clean install sonar:sonar'
}
}
}
}
......@@ -63,8 +65,10 @@ pipeline {
container("maven"){
sh 'mvn --version'
dir('pluto-server') {
withSonarQubeEnv('sonarqube'){
configFileProvider([configFile(fileId: '9aac2fac-7d8d-4128-846b-0a61951df703', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS clean install'
sh 'mvn -s $MAVEN_SETTINGS clean install sonar:sonar'
}
}
}
}
......
......@@ -146,6 +146,27 @@
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
<executions>
<execution>
<id>start-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>generate-report</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
......
sonar.java.coveragePlugin=jacoco
sonar.jacoco.reportPath=target/jacoco.exec
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment