diff --git a/core/src/main/java/hudson/EnvVars.java b/core/src/main/java/hudson/EnvVars.java index 1b1cb78007..a9af87e74a 100644 --- a/core/src/main/java/hudson/EnvVars.java +++ b/core/src/main/java/hudson/EnvVars.java @@ -94,6 +94,15 @@ public class EnvVars extends TreeMap { /** * Environmental variables that we've inherited. + * + *

+ * Despite what the name might imply, this is the environment variable + * of the current JVM process. And therefore, it is Hudson master's environment + * variables only when you access this from the master. + * + *

+ * If you access this field from slaves, then this is the environment + * variable of the slave agent. */ public static final Map masterEnvVars = new EnvVars(System.getenv()); }