aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2024-04-16 18:20:26 +0200
committerMatteo Mara <matteo.mara@sonarsource.com>2024-04-30 10:59:02 +0200
commit7a68e525099ff79027c2aee162da3d05b92fd6aa (patch)
treea47b823375af38d23cef0692b5bf29aee6dd9013 /sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
parentad945cbe450bce968e0bd6c9f33027e8c6c73c35 (diff)
downloadsonarqube-7a68e525099ff79027c2aee162da3d05b92fd6aa.tar.gz
sonarqube-7a68e525099ff79027c2aee162da3d05b92fd6aa.zip
SONAR-22086 Add support to configure scanner with env variables
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
index 75a6a1bdee8..19b90c180fa 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
@@ -26,6 +26,7 @@ import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import org.sonar.api.utils.MessageException;
+import org.sonar.scanner.bootstrap.EnvironmentConfig;
import org.sonar.scanner.bootstrap.SpringGlobalContainer;
/**
@@ -47,6 +48,7 @@ public final class Batch {
}
if (builder.globalProperties != null) {
globalProperties.putAll(builder.globalProperties);
+ EnvironmentConfig.processEnvVariables(globalProperties);
}
if (builder.isEnableLoggingConfiguration()) {
loggingConfig = new LoggingConfiguration(builder.environment).setProperties(globalProperties);