mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
[FIXED JENKINS-20031] Useful error message when UC not found
This commit is contained in:
1 parent
016f304c49
commit
a4b63d2dc0
1 file changed
+3
-1
@@ -721,7 +721,9 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
|
||||
String pluginName = n.substring(0, index);
|
||||
String siteName = n.substring(index + 1);
|
||||
UpdateSite updateSite = Jenkins.getInstance().getUpdateCenter().getById(siteName);
|
||||
if (siteName != null) {
|
||||
if (updateSite == null) {
|
||||
throw new Failure("No such update center: " + siteName);
|
||||
} else {
|
||||
UpdateSite.Plugin plugin = updateSite.getPlugin(pluginName);
|
||||
if (plugin != null) {
|
||||
if (p != null) {
|
||||
|
||||
Reference in new issue
Block a user