提交 2bf23c0e 编写于 作者: K Kohsuke Kawaguchi

Revert "The intent was for this code to move into the doReload() method"

This reverts commit 71f3acfc.
Test regressions
上级 71f3acfc
...@@ -605,9 +605,18 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet ...@@ -605,9 +605,18 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
// try to reflect the changes by reloading // try to reflect the changes by reloading
doReload(); doReload();
new XmlFile(Items.XSTREAM, out.getTemporaryFile()).unmarshal(this);
Items.whileUpdatingByXml(new Callable<Void,IOException>() {
@Override public Void call() throws IOException {
onLoad(getParent(), getRootDir().getName());
return null;
}
});
Jenkins.getInstance().rebuildDependencyGraphAsync();
// if everything went well, commit this new version // if everything went well, commit this new version
out.commit(); out.commit();
SaveableListener.fireOnChange(this, getConfigFile());
} finally { } finally {
out.abort(); // don't leave anything behind out.abort(); // don't leave anything behind
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册