Skip to content

Commit

Permalink
[FIXED JENKINS-33111] Notify SaveableListener when System credentials…
Browse files Browse the repository at this point in the history
… file is saved
  • Loading branch information
stephenc committed May 23, 2016
1 parent e2bf9d8 commit 18c1627
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -38,6 +38,7 @@
import hudson.model.ItemGroup;
import hudson.model.ModelObject;
import hudson.model.Saveable;
import hudson.model.listeners.SaveableListener;
import hudson.security.ACL;
import hudson.security.Permission;
import hudson.util.CopyOnWriteMap;
Expand Down Expand Up @@ -348,7 +349,9 @@ private synchronized StoreImpl getStore() {
*/
public void save() throws IOException {
checkPermission(Jenkins.ADMINISTER);
getConfigFile().write(this);
XmlFile configFile = getConfigFile();
configFile.write(this);
SaveableListener.fireOnChange(this, configFile);
}

/**
Expand Down

0 comments on commit 18c1627

Please sign in to comment.