-
Improvement
-
Resolution: Unresolved
-
Major
-
None
I would like to unset an environment variable being in the way. Therefore I tried something like this (actually: I tried this via the UI only). It did not work as expected. Env variable JAVA_OPTS still exists with original value.
<globalNodeProperties> <hudson.slaves.EnvironmentVariablesNodeProperty> <envVars serialization="custom"> <tree-map> [..] <string>JAVA_OPTS</string> ;; This does not "kill" JAVA_OPTS as expected but <string></string> ;; rather ignores this setting. [..] </tree-map> </envVars> </hudson.slaves.EnvironmentVariablesNodeProperty> </globalNodeProperties>
Context:
Rather than using that half-backed groovy plugin, I'm using Groovy via a Shell build step. However, JAVA_OPTS is set by Tomcat in a conflicting way (Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager) causing Groovy to fail. Therefore I'm looking a way to kill that variable. The obvious way, see above, does not work.