提交 851cb17c 编写于 作者: V Vojtech Juranek

Evn variable wasn't actually populated by computer variables

上级 5379a810
......@@ -24,8 +24,10 @@ public class CoreEnvironmentContributor extends EnvironmentContributor {
@Override
public void buildEnvironmentFor(Run r, EnvVars env, TaskListener listener) throws IOException, InterruptedException {
Computer c = Computer.currentComputer();
if (c!=null)
c.getEnvironment().overrideAll(env);
if (c!=null){
EnvVars compEnv = c.getEnvironment().overrideAll(env);
env.putAll(compEnv);
}
Jenkins j = Jenkins.getInstance();
String rootUrl = j.getRootUrl();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册