Skip to content

Commit

Permalink
[FIXED JENKINS-11636] update-job CLI command doesn't rebuild dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Nov 8, 2011
1 parent 92b98ba commit a4ba526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -67,6 +67,9 @@
<li class=bug>
Fixed a bug in Mac OS X ProcessKiller argument parsing.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-9634">issue 9634</a>)
<li class=bug>
Dependency wasn't recalculated with CLI "update-job" command.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-11636">issue 11636</a>)
<li class=rfe>
Sortable table wasn't "stable" when there are same values in different rows
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-11551">issue 11551</a>)
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/hudson/model/AbstractItem.java
Expand Up @@ -539,6 +539,7 @@ public void updateByXml(StreamSource source) throws IOException {
// try to reflect the changes by reloading
new XmlFile(Items.XSTREAM, out.getTemporaryFile()).unmarshal(this);
onLoad(getParent(), getRootDir().getName());
Jenkins.getInstance().rebuildDependencyGraph();

// if everything went well, commit this new version
out.commit();
Expand Down

0 comments on commit a4ba526

Please sign in to comment.