Skip to content
Snippets Groups Projects
Commit 52284cb8 authored by OZGCloud's avatar OZGCloud
Browse files

Fixed Unitttestcoverage

parent c0f41e69
Branches
Tags
No related merge requests found
......@@ -100,7 +100,7 @@ pipeline {
dir('user-manager-server') {
try {
withSonarQubeEnv('sonarqube-ozg-sh'){
sh "./mvnw -s $MAVEN_SETTINGS test sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=${env.WORKSPACE}/user-manager-server/target/jacoco-report/jacoco.xml"
sh "./mvnw -s $MAVEN_SETTINGS package sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=${env.WORKSPACE}/user-manager-server/target/jacoco-report/jacoco.xml"
}
} catch (Exception e) {
unstable("SonarQube failed")
......
......@@ -299,6 +299,8 @@
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<argLine>${surefire.jacoco.args}</argLine>
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
</systemPropertyVariables>
</configuration>
</plugin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment