diff --git a/Jenkinsfile b/Jenkinsfile index 5a97b24b8eae06612a8730738ec982e1023b44c2..2eeec8df6ffdaf23800566a0519edb6ee93b7b93 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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") diff --git a/user-manager-server/pom.xml b/user-manager-server/pom.xml index 720c475081ee11e05212c8cdc0ac773f2a492728..0d65a87f805e40af8813fdb9eddedd12f7bf93dc 100644 --- a/user-manager-server/pom.xml +++ b/user-manager-server/pom.xml @@ -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>