Skip to content
Permalink
Browse files
JENKINS-17108. This solves the problem with ItemListner.onUpdated not…
… being called if the project was disabled/enabled by pushing the button on the project page. Also solved the problem with ItemListener.onUpdated not getting called if the project description was updated using the edit description on the project page.
  • Loading branch information
d-olausson-ericsson authored and vjuranek committed Sep 4, 2013
1 parent 49c731f commit e81a9076c414eda983559f17aa8f0c38b8a89b09
@@ -182,7 +182,9 @@ public String getDescription() {
*/
public void setDescription(String description) throws IOException {
this.description = description;
ItemListener.fireOnUpdated(this);
save();

}

/**
@@ -53,6 +53,7 @@
import hudson.model.RunMap.Constructor;
import hudson.model.labels.LabelAtom;
import hudson.model.labels.LabelExpression;
import hudson.model.listeners.ItemListener;
import hudson.model.listeners.SCMPollListener;
import hudson.model.queue.CauseOfBlockage;
import hudson.model.queue.SubTaskContributor;
@@ -702,6 +703,7 @@ public void makeDisabled(boolean b) throws IOException {
this.disabled = b;
if(b)
Jenkins.getInstance().getQueue().cancel(this);
ItemListener.fireOnUpdated(this);
save();
}

0 comments on commit e81a907

Please sign in to comment.