Skip to content

Commit

Permalink
[FIXED JENKINS-34883] the legacy default update site can be different…
Browse files Browse the repository at this point in the history
… from the one specified by ID_DEFAULT
  • Loading branch information
varmenise committed May 19, 2016
1 parent d08eec1 commit 1e746f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/java/hudson/model/UpdateCenter.java
Expand Up @@ -160,6 +160,8 @@ public class UpdateCenter extends AbstractModelObject implements Saveable, OnMas
*/
public static final String ID_DEFAULT = SystemProperties.getString(UpdateCenter.class.getName()+".defaultUpdateSiteId", "default");

public static final String LEGACY_ID_DEFAULT = "default";

@Restricted(NoExternalUse.class)
public static final String ID_UPLOAD = "_upload";

Expand Down Expand Up @@ -845,7 +847,7 @@ public synchronized void save() {
* Loads the data from the disk into this object.
*/
public synchronized void load() throws IOException {
UpdateSite defaultSite = new UpdateSite(ID_DEFAULT, config.getUpdateCenterUrl() + "update-center.json");
UpdateSite defaultSite = new UpdateSite(LEGACY_ID_DEFAULT, config.getUpdateCenterUrl() + "update-center.json");
XmlFile file = getConfigFile();
if(file.exists()) {
try {
Expand Down

0 comments on commit 1e746f6

Please sign in to comment.