Skip to content
Permalink
Browse files

Merge pull request #20 from jglick/sticky-var-JENKINS-16316

[JENKINS-16316] Changes to global variables not honored.
  • Loading branch information...
gboissinot committed Jul 28, 2013
2 parents b5cc29f + dedee19 commit 3371ed7601431b57780a30ddea4b84dd27e38b6e
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/main/java/org/jenkinsci/plugins/envinject/EnvInjectComputerListener.java
@@ -77,13 +77,6 @@ private EnvVars getNewSlaveEnvironmentVariables(Computer c, FilePath nodePath, T

Map<String, String> currentEnvVars = new HashMap<String, String>();

// -- Retrieve Environment variables from master
for (NodeProperty<?> nodeProperty : Hudson.getInstance().getGlobalNodeProperties()) {
if (nodeProperty instanceof EnvironmentVariablesNodeProperty) {
currentEnvVars.putAll(((EnvironmentVariablesNodeProperty) nodeProperty).getEnvVars());
}
}

EnvInjectLogger logger = new EnvInjectLogger(listener);
EnvInjectEnvVars envInjectEnvVarsService = new EnvInjectEnvVars(logger);

0 comments on commit 3371ed7

Please sign in to comment.
You can’t perform that action at this time.