mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 14:32:22 +00:00
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:
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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user