This is an automated email from the ASF dual-hosted git repository.
zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 97a9677f6ca HIVE-29180: SonarQube reports issues unrelated to changes
in the pull request (#6063)
97a9677f6ca is described below
commit 97a9677f6ca5561eceab0b6bb5fa14b6c9818803
Author: Stamatis Zampetakis <[email protected]>
AuthorDate: Mon Sep 8 14:02:32 2025 +0200
HIVE-29180: SonarQube reports issues unrelated to changes in the pull
request (#6063)
The reason is that the base branch (master) did not have a valid scan for
over a month
since the SonnarScanner was consistently failing with OutOfMemoryError.
---
Jenkinsfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index c461aa78a51..692b6773a16 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -119,9 +119,11 @@ def sonarAnalysis(args) {
-Dsonar.host.url=https://sonarcloud.io \
"""+args+" -DskipTests -Dit.skipTests -Dmaven.javadoc.skip"
+ // Sonar scanner runs in a separate JVM so JAVA_OPTS (notably heap size)
+ // must be passed via the appropriate environment variable
sh """#!/bin/bash -e
sw java 21 && . /etc/profile.d/java.sh
- export MAVEN_OPTS=-Xmx5G
+ export SONAR_SCANNER_JAVA_OPTS=-Xmx8g
"""+mvnCmd
}
}