提交 7f572c15 编写于 作者: K kohsuke

fixed #536 "Hudson fails on first startup"


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3285 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c5a9bb24
......@@ -890,7 +890,10 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
if(pluginManager!=null) // be defensive. there could be some ugly timing related issues
pluginManager.stop();
getQueue().save();
if(getRootDir().exists())
// if we are aborting because we failed to create HUDSON_HOME,
// don't try to save. Issue #536
getQueue().save();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册