diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2024-04-16 18:20:26 +0200 |
---|---|---|
committer | Matteo Mara <matteo.mara@sonarsource.com> | 2024-04-30 10:59:02 +0200 |
commit | 7a68e525099ff79027c2aee162da3d05b92fd6aa (patch) | |
tree | a47b823375af38d23cef0692b5bf29aee6dd9013 /sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper | |
parent | ad945cbe450bce968e0bd6c9f33027e8c6c73c35 (diff) | |
download | sonarqube-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')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java | 2 |
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); |