From 4fed9427eb5092f539cd949002445fbb7d7c01f8 Mon Sep 17 00:00:00 2001 From: Tom Van Braband Date: Fri, 12 Feb 2021 13:47:14 +0100 Subject: [PATCH] SC-2971 Unset JAVA_HOME before executing the scanner --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7fa41cb..3f4db4e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,5 +20,5 @@ fi if [[ -z "${SONARCLOUD_URL}" ]]; then SONARCLOUD_URL="https://sonarcloud.io" fi - +unset JAVA_HOME sonar-scanner -Dsonar.projectBaseDir=${INPUT_PROJECTBASEDIR} -Dsonar.host.url=${SONARCLOUD_URL} ${INPUT_ARGS}