Skip to content
Browse files
[JENKINS-18898] Comment.
Unclear what Run.getEnvironment is supposed to return after the build is complete.
In particular, SubversionSCM calls this during polling to substitute variables in e.g. repo URL.
Presumably in such a case node-specific variables such as ToolInstallation.home would be irrelevant.
But in general should this reflect the “current” computer (if any), or the computer on which the build ran?
  • Loading branch information
jglick committed Jul 24, 2013
1 parent be158b4 commit 33101a3a01d3ec716a8c81eee97bbccde0c3793e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -172,7 +172,7 @@ public EnvVars getEnvironment(TaskListener log) throws IOException, InterruptedE

Computer computer = Computer.currentComputer();
if (computer != null) { // just in case were not in a build
Node node = computer.getNode();
Node node = computer.getNode(); // TODO should this rather be getBuiltOn()? Cf. JENKINS-18898
if (node != null) {
mvn = mvn.forNode(node, log);

0 comments on commit 33101a3

Please sign in to comment.