We are developing a custom language plugin
SonarQube docker version sonarqube:9.2.4-developer
The custom plugin loads fine and registers correctly. When running the SonarQube container we need to inject a variable to the plugin to configure to the local environment. The environment variable is available in the container (confirmed running bash on the container).
When calling System.getenv() the variable is not defined. I did find a similar problem with version 8 related to the security manager but this situation is slightly different in that the getenv() call succeeds but the environment variable is missing.
Summary: System.getenv() called in a custom plugin does not contain a defined container environment variable.
Environment variable was chosen for the convenience of defining when the container is run and not as the image it built.
Has anyone else experienced this behavior with V9?