This is an automated email from the ASF dual-hosted git repository.
psomogyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase-connectors.git
The following commit(s) were added to refs/heads/master by this push:
new 496cd58 HBASE-27285: Fix sonar report paths (#103)
496cd58 is described below
commit 496cd582198f71544259ecfa9e207aca9ba18389
Author: Horváth Dóra <[email protected]>
AuthorDate: Mon Aug 15 10:53:40 2022 +0200
HBASE-27285: Fix sonar report paths (#103)
Signed-off-by: Peter Somogyi <[email protected]>
Reviewed-by: Mate Szalay-Beko <[email protected]>
---
dev-support/code-coverage/run-coverage.sh | 4 ++--
pom.xml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dev-support/code-coverage/run-coverage.sh
b/dev-support/code-coverage/run-coverage.sh
index c56d846..5379e01 100755
--- a/dev-support/code-coverage/run-coverage.sh
+++ b/dev-support/code-coverage/run-coverage.sh
@@ -43,8 +43,8 @@ MAIN_POM="${SCRIPT_DIR}/../../pom.xml"
# If the required parameters are given, the code coverage results are
uploaded to the SonarQube Server
if [ -n "$SONAR_LOGIN" ] && [ -n "$SONAR_PROJECT_KEY" ] && [ -n "$SONAR_URL"
]; then
- mvn -B -e -Pcoverage sonar:sonar
-Dsonar.clover.reportPath=./target/clover/clover.xml \
- -Dsonar.host.url="$SONAR_URL" -Dsonar.login="$SONAR_LOGIN"
-Dsonar.projectKey="$SONAR_PROJECT_KEY"
-Dsonar.projectName="$SONAR_PROJECT_NAME"
+ mvn -B -e -Pcoverage sonar:sonar -Dsonar.host.url="$SONAR_URL"
-Dsonar.login="$SONAR_LOGIN" \
+ -Dsonar.projectKey="$SONAR_PROJECT_KEY"
-Dsonar.projectName="$SONAR_PROJECT_NAME"
fi
}
diff --git a/pom.xml b/pom.xml
index ba889f6..186d21f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -733,10 +733,10 @@
<sonar.java.binaries>**/target/classes</sonar.java.binaries>
<sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
<sonar.coverage.jacoco.xmlReportPaths>
-
${sonar.projectBaseDir}/test-reporting/target/site/jacoco-aggregate/jacoco.xml
+
${sonar.projectBaseDir}/test-reporting/target/code-coverage/jacoco-reports/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
<sonar.scala.coverage.reportPaths>
- ${sonar.projectBaseDir}/spark/hbase-spark/target/scoverage.xml
+
${sonar.projectBaseDir}/test-reporting/target/code-coverage/scoverage-reports/scoverage.xml
</sonar.scala.coverage.reportPaths>
<argLine />
<main.basedir>${project.basedir}</main.basedir>