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

Not sure why it didn't in ce7e6390ee.
This commit is contained in:
Kohsuke Kawaguchi committed 2014-03-18 14:35:25 -07:00
1 parent a65bc64d1d
commit 71f3acfc3c
1 file changed
-9
@@ -605,18 +605,9 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
// try to reflect the changes by reloading
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
out.commit();
SaveableListener.fireOnChange(this, getConfigFile());
} finally {
out.abort(); // don't leave anything behind
}