mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 10:36:21 +00:00
Introduce constant: UpdateCenter.ID_DEFAULT
This commit is contained in:
1 parent
8b15fb6ae7
commit
f673c44556
4 files changed
+12
-6
No files matched your search
@@ -663,10 +663,10 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
UpdateCenter uc = hudson.getUpdateCenter();
|
||||
PersistedList<UpdateSite> sites = uc.getSites();
|
||||
for (UpdateSite s : sites) {
|
||||
if (s.getId().equals("default"))
|
||||
if (s.getId().equals(UpdateCenter.ID_DEFAULT))
|
||||
sites.remove(s);
|
||||
}
|
||||
sites.add(new UpdateSite("default",site));
|
||||
sites.add(new UpdateSite(UpdateCenter.ID_DEFAULT, site));
|
||||
|
||||
return HttpResponses.redirectToContextRoot();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user