提交 5ad3cf61 编写于 作者: K kohsuke

this doesn't belong to JDK

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16992 71c3de6d-444a-0410-be80-ed276b4c234a
上级 8c87a6f8
......@@ -95,10 +95,7 @@ public final class JDK extends ToolInstallation implements NodeSpecific<JDK>, En
public void buildEnvVars(Map<String,String> env) {
// see EnvVars javadoc for why this adss PATH.
env.put("PATH+JDK",getBinDir().getPath());
env.put("JAVA_HOME",getJavaHome());
if(!env.containsKey("HUDSON_HOME"))
env.put("HUDSON_HOME", Hudson.getInstance().getRootDir().getPath() );
}
public JDK forNode(Node node) {
......
......@@ -1286,6 +1286,8 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
String rootUrl = Hudson.getInstance().getRootUrl();
if(rootUrl!=null)
env.put("HUDSON_URL", rootUrl);
if(!env.containsKey("HUDSON_HOME"))
env.put("HUDSON_HOME", Hudson.getInstance().getRootDir().getPath() );
Thread t = Thread.currentThread();
if (t instanceof Executor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册